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: