feat: nginx conf template

This commit is contained in:
Lenoctambule
2026-04-02 14:26:53 +02:00
parent 66f115a2e2
commit 321d078167
4 changed files with 62 additions and 44 deletions

View File

@@ -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;'"