somewhat added certbot

This commit is contained in:
Aaro Koivukangas
2023-11-28 15:58:23 +02:00
parent 2b851117b0
commit 8fc2e2bd3d
2 changed files with 31 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
FROM certbot/certbot AS builder
RUN apk add nginx
RUN pip3 install pip --upgrade
RUN pip3 install certbot-nginx
+26 -1
View File
@@ -94,5 +94,30 @@ services:
nginx:
build:
context: nginx
ports:
- 80:80
- 443:443
depends_on:
- certbot
volumes:
- ./data/nginx:/etc/nginx
- ./nginx/conf:/etc/nginx
- ./data/letsencrypt:/etc/letsencrypt/:rw
- certbot-var:/var/lib/letsencrypt
#- web-root:/var/www/html
certbot:
build:
context: certbot
command: "certonly --nginx --email aaro.koivukangas@gmail.com --non-interactive --agree-tos -d pumppi.dev -d brewery.pumppi.dev -d cal.pumppi.dev -d git.pumppi.dev -d reaktor.pumppi.dev -d tsoha.pumppi.dev -d www.pumppi.dev"
volumes:
- ./data/letsencrypt:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- ./nginx/conf:/etc/nginx:rw
#- web-root:/var/www/html
#depends_on:
#- webserver
#command: certonly --webroot --webroot-path=/var/www/html --email aaro.koivukangas@gmail.com --agree-tos --no-eff-email --staging -d your_domain -d www.your_domain
volumes:
certbot-etc:
certbot-var: