43 lines
851 B
YAML
43 lines
851 B
YAML
networks:
|
|
back:
|
|
volumes:
|
|
caddy_data:
|
|
caddy_config:
|
|
services:
|
|
|
|
# caddy acts as a reverse proxy for synapse (matrix)
|
|
caddy:
|
|
image: caddy:2.6.4
|
|
volumes:
|
|
- caddy_data:/data
|
|
- caddy_config:/config
|
|
- type: bind
|
|
source: /var/www
|
|
target: /www
|
|
networks:
|
|
- back
|
|
ports:
|
|
- target: 80
|
|
published: 80
|
|
protocol: tcp
|
|
mode: host
|
|
- target: 443
|
|
published: 443
|
|
protocol: tcp
|
|
mode: host
|
|
- target: 8448
|
|
published: 8448
|
|
protocol: tcp
|
|
mode: host
|
|
environment:
|
|
DWEB_DOMAIN: "${DWEB_DOMAIN}"
|
|
DWEB_ONION: "${DWEB_ONION}"
|
|
configs:
|
|
- source: caddy-caddyfile-config
|
|
target: /etc/caddy/Caddyfile
|
|
|
|
configs:
|
|
caddy-caddyfile-config:
|
|
file: ../caddy/Caddyfile.tmpl
|
|
external: false
|