2021-01-28 13:34:53 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx-terminate:
|
2022-09-11 10:10:44 -04:00
|
|
|
image: nginx:alpine
|
2021-01-28 13:34:53 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-11 10:10:44 -04:00
|
|
|
- ./data/nginx-terminate/nginx.conf:/etc/nginx/nginx.conf:Z
|
|
|
|
- ./data/certbot/conf:/etc/letsencrypt:Z
|
|
|
|
- ./data/certbot/www:/var/www/certbot:Z
|
2021-01-28 13:34:53 -05:00
|
|
|
ports:
|
|
|
|
- "443:443"
|
2023-01-12 08:57:43 -05:00
|
|
|
- "80:80"
|
2022-09-11 11:03:17 -04:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
2022-09-25 16:08:35 -04:00
|
|
|
- SETUID
|
|
|
|
- SETGID
|
2021-01-28 13:34:53 -05:00
|
|
|
nginx-relay:
|
2022-09-11 10:10:44 -04:00
|
|
|
image: nginx:alpine
|
2021-01-28 13:34:53 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-11 10:10:44 -04:00
|
|
|
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
|
2022-09-11 11:03:17 -04:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
2022-09-25 16:08:35 -04:00
|
|
|
cap_add:
|
|
|
|
- SETUID
|
|
|
|
- SETGID
|
2021-01-28 13:34:53 -05:00
|
|
|
certbot:
|
|
|
|
image: certbot/certbot
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-11 10:10:44 -04:00
|
|
|
- ./data/certbot/conf:/etc/letsencrypt:Z
|
|
|
|
- ./data/certbot/www:/var/www/certbot:Z
|
2022-09-11 11:03:17 -04:00
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
|
|
|
security_opt:
|
2022-12-27 20:08:21 -05:00
|
|
|
- no-new-privileges:true
|