From b494c9a51fa87ba76f1915bc06ebd306e12dacc5 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Wed, 5 Jun 2024 12:28:21 +0900 Subject: [PATCH] add nginx --- docker-compose.master.yml | 15 +++++++++++++++ docker-compose.slave.yml | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/docker-compose.master.yml b/docker-compose.master.yml index 8d21706..db4525c 100644 --- a/docker-compose.master.yml +++ b/docker-compose.master.yml @@ -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: diff --git a/docker-compose.slave.yml b/docker-compose.slave.yml index 787baf7..b0db405 100644 --- a/docker-compose.slave.yml +++ b/docker-compose.slave.yml @@ -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: