Initial commit
This commit is contained in:
commit
3aac479832
9
Caddyfile
Normal file
9
Caddyfile
Normal 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
0
certData/domains.txt
Normal file
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user