Author SHA1 Message Date
tobbbs 766cde1b1e Update compose.yaml 2026-06-15 09:39:23 +02:00
tobbbs 6cbd561a6e Add compose.yaml 2026-05-26 13:31:40 +02:00
+53 -38
View File
@@ -1,48 +1,63 @@
name: pangolin
services:
nginx:
image: "nginx:1.22.0"
container_name: matrix-nginx
restart: "always"
networks:
- hydra-local
volumes:
- /opt/02_messaging/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
synapse:
image: docker.io/matrixdotorg/synapse:latest
container_name: matrix-synapse
pangolin:
image: docker.io/fosrl/pangolin:ee-latest
container_name: pangolin
restart: unless-stopped
networks:
- hydra-local
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
deploy:
resources:
limits:
memory: 1g
reservations:
memory: 256m
volumes:
- /opt/02_messaging/synapse:/data
- /opt/pangolin/config:/app/config
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/api/v1/"]
interval: "10s"
timeout: "10s"
retries: 15
gerbil:
image: docker.io/fosrl/gerbil:latest
container_name: gerbil
restart: unless-stopped
depends_on:
- synapse_db
synapse_db:
image: docker.io/postgres:14-alpine
restart: unless-stopped
container_name: matrix-synapse-db
networks:
- hydra-local
environment:
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=aComplexPassphraseNobodyCanGuess
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
pangolin:
condition: service_healthy
command:
- --reachableAt=http://gerbil:3004
- --generateAndSaveKeyTo=/var/config/key
- --remoteConfig=http://pangolin:3001/api/v1/
volumes:
- /opt/02_messaging/postgres:/var/lib/postgresql/data
- /opt/pangolin/config/:/var/config
cap_add:
- NET_ADMIN
- SYS_MODULE
ports:
- 51820:51820/udp
- 21820:21820/udp
- 443:443
- 443:443/udp # For http3 QUIC if desired
- 80:80
mautrix-whatsapp:
container_name: mautrix-whatsapp
image: dock.mau.dev/mautrix/whatsapp:latest
traefik:
image: docker.io/traefik:latest
container_name: traefik
restart: unless-stopped
networks:
- hydra-local
network_mode: service:gerbil # Ports appear on the gerbil service
depends_on:
pangolin:
condition: service_healthy
command:
- --configFile=/etc/traefik/traefik_config.yml
volumes:
- /opt/02_messaging/bridges/whatsapp:/data
- /opt/pangolin/config/traefik:/etc/traefik:ro # Volume to store the Traefik configuration
- /opt/pangolin/config/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates
- /opt/pangolin/config/traefik/logs:/var/log/traefik # Volume to store Traefik logs
networks:
hydra-local:
external: true
default:
driver: bridge
name: pangolin
enable_ipv6: true