Initial commit

This commit is contained in:
Johanna Dorothea Reichmann 2019-04-03 21:05:23 +02:00
commit 3aac479832
3 changed files with 39 additions and 0 deletions

9
Caddyfile Normal file
View File

@ -0,0 +1,9 @@
:80/.well-known/acme-challenge/ {
browse
root /var/www/certMgmt
}
:80 {
redir / https://{host}{uri} 301
}

0
certData/domains.txt Normal file
View File

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
version: '3'
services:
dehydrated:
image: docker.io/matrixdotorg/dehydrated
restart: unless-stopped
depends_on:
- certWebServe
volumes:
- ./certData:/data:z
environment:
- DEHYDRATED_CA="https://acme-v02.api.letsencrypt.org/directory"
- DEHYDRATED_CHALLENGE="http-01"
- DEHYDRATED_KEYSIZE="4096"
- DEHYDRATED_RENEW_DAYS="30"
- DEHYDRATED_KEY_RENEW="yes"
- DEHYDRATED_EMAIL="<mail-address-here>"
- DEHYDRATED_ACCEPT_TERMS=yes
- UID=1001
- GID=1002
certWebServe:
image: registry.gitlab.com/jcgruenhage/docker-caddy:latest
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:z
- ./certData/wellknown/:/var/www/certMgmt/:z
ports:
- 80:80
environment:
- UID=1001
- GID=1002