Skip to content

Commit d2d01ba

Browse files
committed
Add :Z for SELinux
Signed-off-by: Tommy <contact@tommytran.io>
1 parent 8999930 commit d2d01ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ services:
55
build: ./nginx-terminate/
66
restart: unless-stopped
77
volumes:
8-
- ./data/nginx-terminate:/etc/nginx/conf.d
9-
- ./data/certbot/conf:/etc/letsencrypt
10-
- ./data/certbot/www:/var/www/certbot
8+
- ./data/nginx-terminate:/etc/nginx/conf.d:Z
9+
- ./data/certbot/conf:/etc/letsencrypt:Z
10+
- ./data/certbot/www:/var/www/certbot:Z
1111
ports:
1212
- "443:443"
1313
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
1414
nginx-relay:
1515
build: ./nginx-relay/
1616
restart: unless-stopped
1717
volumes:
18-
- ./data/nginx-relay:/etc/nginx/conf.d
18+
- ./data/nginx-relay:/etc/nginx/conf.d:Z
1919
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
2020
certbot:
2121
image: certbot/certbot
2222
restart: unless-stopped
2323
volumes:
24-
- ./data/certbot/conf:/etc/letsencrypt
25-
- ./data/certbot/www:/var/www/certbot
24+
- ./data/certbot/conf:/etc/letsencrypt:Z
25+
- ./data/certbot/www:/var/www/certbot:Z
2626
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"

0 commit comments

Comments
 (0)