mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-07-10 01:45:12 +02:00
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:
@ -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
|
Reference in New Issue
Block a user