commit 3aac4798329292e12173ea3271376e19548c672c Author: Johanna Dorothea Reichmann Date: Wed Apr 3 21:05:23 2019 +0200 Initial commit diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..d61c4a1 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,9 @@ +:80/.well-known/acme-challenge/ { + browse + root /var/www/certMgmt +} + +:80 { + redir / https://{host}{uri} 301 +} + diff --git a/certData/domains.txt b/certData/domains.txt new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ac17666 --- /dev/null +++ b/docker-compose.yml @@ -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="" + - 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 +