add nginx

This commit is contained in:
dalbodeule 2024-06-05 12:28:21 +09:00
parent 7fb73ed9a0
commit b494c9a51f
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65
2 changed files with 30 additions and 0 deletions

View File

@ -75,10 +75,25 @@ services:
networks:
- pdns_network
restart: always
nginx:
image: jonasal/nginx-certbot:latest
restart: always
environment:
- CERTBOT_EMAIL
env_file:
- ./nginx-certbot.env
ports:
- 80:80
- 443:443
volumes: # Storage can be either a
- nginx_secrets:/etc/letsencrypt # Docker managed volume (see list at the bottom)
- nginx_conf:/etc/nginx/user_conf.d # or a host mount with a relative or full path.
volumes:
mariadb_data:
mariadb_config:
nginx_secrets:
nginx_conf:
networks:
pdns_network:

View File

@ -52,10 +52,25 @@ services:
networks:
- pdns_network
restart: always
nginx:
image: jonasal/nginx-certbot:latest
restart: always
environment:
- CERTBOT_EMAIL
env_file:
- ./nginx-certbot.env
ports:
- 80:80
- 443:443
volumes: # Storage can be either a
- nginx_secrets:/etc/letsencrypt # Docker managed volume (see list at the bottom)
- nginx_conf:/etc/nginx/user_conf.d # or a host mount with a relative or full path.
volumes:
mariadb_data:
mariadb_config:
nginx_secrets:
nginx_conf:
networks:
pdns_network: