docker-mirror/docker-compose.yml

48 lines
1.5 KiB
YAML
Raw Normal View History

2022-01-22 20:17:36 +00:00
version: "3.7"
services:
nginx:
image: nginx:mainline-alpine
2022-01-22 20:17:36 +00:00
container_name: nginx
hostname: ${DOMAIN_NAME:?err}
volumes:
- './http-root:/var/lib/nginx/html/http-root:ro'
2022-01-22 20:17:36 +00:00
- './data/acme-webroot:/var/lib/nginx/html/acme:ro'
- './data/letsencrypt/etc:/etc/letsencrypt:ro'
- './preset/nginx.conf:/etc/nginx/nginx.conf:ro'
- './preset/conf.d:/etc/nginx/conf.d:ro'
labels:
com.datadoghq.ad.check_names: '["nginx"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: '[{"nginx_status_url": "http://%%host%%:81/nginx_status/"}]'
ports:
- '80:80'
- '443:443'
restart: ${RESTART:-unless-stopped}
2022-01-22 20:17:36 +00:00
syncthing:
image: syncthing/syncthing:latest
2022-01-22 20:17:36 +00:00
container_name: syncthing
hostname: ${DOMAIN_NAME:?err}
environment:
- PUID=1000
- PGID=1000
volumes:
- './data/syncthing:/var/syncthing/config'
- './http-root/chaotic-aur:/repo'
2022-01-22 20:17:36 +00:00
ports:
- '127.0.0.1:8384:8384'
2022-01-22 20:17:36 +00:00
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
2022-07-23 18:41:50 +00:00
restart: ${RESTART:-unless-stopped}
2022-01-22 20:17:36 +00:00
certbot:
image: certbot/certbot:${LETSENCRYPT_TAG:-latest}
2022-01-22 20:17:36 +00:00
container_name: certbot
volumes:
- './data/acme-webroot:/srv/http/webroot'
- './data/letsencrypt/etc:/etc/letsencrypt'
- './data/letsencrypt/var:/var/lib/letsencrypt'
entrypoint: "/bin/sh -c 'trap exit TERM; sleep 10; while :; do certbot renew -w /srv/http/webroot/ --webroot; sleep 12h & wait $${!}; done;'"
restart: ${RESTART:-unless-stopped}