mount caddyfiles from the services

authelia
Jonathan Dahan 2 years ago
parent 33949b53a0
commit 7853e29727

@ -27,7 +27,8 @@ One simple way is to allow unprivileged users access to these low ports
- [x] caddy for homepage
- [x] webdav for personal home pages
- [ ] authelia sso
- [?] authelia sso
- [x] mount caddy files from service compose files
- [ ] backup using duplicity uploaded to backblaze b2
- [ ] restore using duplicity downloaded from backblaze b2
- [ ] ~~zitadel sso~~

@ -53,6 +53,10 @@ services:
restart: no
entrypoint: [ "/generate-secrets.sh", "/secrets" ]
caddy:
volumes:
- ./authelia/Proxyfile:/etc/caddy.d/authelia:ro
volumes:
postgres-data:
authelia-config:

@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
caddy:

@ -4,10 +4,4 @@
}
}
web.{$DOMAIN} {
reverse_proxy web:4431
}
login.{$DOMAIN} {
reverse_proxy authelia:9091
}
import /etc/caddy.d/*

@ -35,9 +35,21 @@ There are three things to think about when adding a service:
Generally, zitadel has some cli commands that we have put in scripts in the zitadel folder.
2. How to expose as a subdomain in caddy?
2. How to expose as a subdomain?
You will want to make a Caddyfile, which will get mounted by the Caddy compose file.
Add a volume mount of your reverse proxy config to your compose file.
# in the services: part of your compose file
caddy:
volumes:
- ./some-service/Proxyfile:/etc/caddy.d/some-service
# Proxyfile looks something like
someservice.{$DOMAIN} {
reverse_proxy someservice:4321
}
3. How will this be backed up and restored?

@ -1,4 +1,4 @@
version: "3.7"
version: "3.8"
services:
web:
@ -18,5 +18,9 @@ services:
environment:
- DOMAIN
caddy:
volumes:
- ./web/Proxyfile:/etc/caddy.d/web:ro
volumes:
caddy_config:

Loading…
Cancel
Save