feat: nginx conf template
This commit is contained in:
@@ -59,16 +59,28 @@ services:
|
||||
- WP_ADMIN_EMAIL=${WP_ADMIN_EMAIL:-obama@obamail.com}
|
||||
|
||||
nginx:
|
||||
container_name : nginx
|
||||
build : ./nginx/
|
||||
ports :
|
||||
- 0.0.0.0:443:443
|
||||
- 0.0.0.0:80:80
|
||||
container_name: nginx
|
||||
image: nginx:latest
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
networks :
|
||||
- inception
|
||||
depends_on :
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
depends_on:
|
||||
- wordpress
|
||||
restart: always
|
||||
volumes :
|
||||
- site_data:/var/www/wordpress
|
||||
- ./certs/:/certs/
|
||||
volumes:
|
||||
- ./nginx/secure/:/etc/nginx/templates/
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./nginx/certbot/conf:/etc/letsencrypt
|
||||
- ./nginx/certbot/www:/var/www/certbot
|
||||
- ./nginx/99-autoreload.sh:/docker-entrypoint.d/99-autoreload.sh
|
||||
|
||||
# certbot:
|
||||
# image: certbot/certbot
|
||||
# volumes:
|
||||
# - ./nginx/certbot/conf:/etc/letsencrypt
|
||||
# - ./nginx/certbot/www:/var/www/certbot
|
||||
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||
Reference in New Issue
Block a user