Added an example of fronting the playbook's integrated Traefik reverse-proxy with the existing Caddy container (not the apt-get or yum installed Caddy). Helpful for folks who have an existing server with a Caddy container already serving multiple applications.

This commit is contained in:
w.z
2024-09-11 22:06:32 +08:00
parent 8b56be0fe1
commit ee74067cb6
4 changed files with 175 additions and 0 deletions

View File

@ -0,0 +1,22 @@
version: "3.9"
services:
caddy:
image: caddy:2.5.1-alpine
networks:
# add this, so that caddy can talk to the playbook-managed-traefik
- traefik
ports:
- "80:80"
- "443:443"
- "8448:8448"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
# - ./site:/var/www
# Other configurations ...
networks:
# add this as well
traefik:
name: traefik
external: true