Skip to content

Commit

Permalink
Include public volume in nginx container
Browse files Browse the repository at this point in the history
  • Loading branch information
azvoleff committed Aug 5, 2024
1 parent f38b03d commit 245e98c
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions docker-compose-nginx.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
services:
nginx:
image: jonasal/nginx-certbot:5.2.1-nginx1.27.0-alpine
restart: always
env_file:
- ./nginx-certbot.env
ports:
- 80:80
- 443:443
volumes:
- nginx_secrets:/etc/letsencrypt
- ./nginx-conf:/etc/nginx/user_conf.d
deploy:
placement:
constraints: [node.role == manager]
resources:
reservations:
cpus: "0.25"
memory: 100M

volumes:
nginx_secrets:
services:
nginx:
image: jonasal/nginx-certbot:5.2.1-nginx1.27.0-alpine
restart: always
env_file:
- ./nginx-certbot.env
ports:
- 80:80
- 443:443
volumes:
- nginx_secrets:/etc/letsencrypt
- ./nginx-conf:/etc/nginx/user_conf.d
- status-public:/public
deploy:
placement:
constraints: [node.role == manager]
resources:
reservations:
cpus: "0.25"
memory: 100M

volumes:
nginx_secrets:
status-public:

0 comments on commit 245e98c

Please sign in to comment.