From 2df62b0355c617db28b069da65e4f2c245735ea7 Mon Sep 17 00:00:00 2001 From: Arthur Werbrouck Date: Mon, 26 Feb 2024 17:56:06 +0100 Subject: [PATCH] adding certbot support to docker --- docker-compose.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index d60c35c9..4bdb01ef 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,6 +5,10 @@ services: ports: - 80:80 - 443:443 + restart: always + volumes: + - ./nginx/conf/:/etc/nginx/conf.d/:ro + - ./certbot/www/:/var/www/certbot/:ro backend: container_name: spring_container build: backend/app/ @@ -37,7 +41,11 @@ services: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: root restart: unless-stopped - + certbot: + image: certbot/certbot:latest + volumes: + - ./certbot/www/:/var/www/certbot/:rw + - ./certbot/conf/:/etc/letsencrypt/:rw volumes: postgres-data: secrets: