Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
766cde1b1e | ||
|
|
6cbd561a6e |
+53
-38
@@ -1,48 +1,63 @@
|
|||||||
|
name: pangolin
|
||||||
services:
|
services:
|
||||||
nginx:
|
pangolin:
|
||||||
image: "nginx:1.22.0"
|
image: docker.io/fosrl/pangolin:ee-latest
|
||||||
container_name: matrix-nginx
|
container_name: pangolin
|
||||||
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
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
deploy:
|
||||||
- hydra-local
|
resources:
|
||||||
environment:
|
limits:
|
||||||
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
memory: 1g
|
||||||
|
reservations:
|
||||||
|
memory: 256m
|
||||||
volumes:
|
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:
|
depends_on:
|
||||||
- synapse_db
|
pangolin:
|
||||||
|
condition: service_healthy
|
||||||
synapse_db:
|
command:
|
||||||
image: docker.io/postgres:14-alpine
|
- --reachableAt=http://gerbil:3004
|
||||||
restart: unless-stopped
|
- --generateAndSaveKeyTo=/var/config/key
|
||||||
container_name: matrix-synapse-db
|
- --remoteConfig=http://pangolin:3001/api/v1/
|
||||||
networks:
|
|
||||||
- hydra-local
|
|
||||||
environment:
|
|
||||||
- POSTGRES_USER=synapse
|
|
||||||
- POSTGRES_PASSWORD=aComplexPassphraseNobodyCanGuess
|
|
||||||
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
|
||||||
volumes:
|
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:
|
traefik:
|
||||||
container_name: mautrix-whatsapp
|
image: docker.io/traefik:latest
|
||||||
image: dock.mau.dev/mautrix/whatsapp:latest
|
container_name: traefik
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
network_mode: service:gerbil # Ports appear on the gerbil service
|
||||||
- hydra-local
|
depends_on:
|
||||||
|
pangolin:
|
||||||
|
condition: service_healthy
|
||||||
|
command:
|
||||||
|
- --configFile=/etc/traefik/traefik_config.yml
|
||||||
volumes:
|
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:
|
networks:
|
||||||
hydra-local:
|
default:
|
||||||
external: true
|
driver: bridge
|
||||||
|
name: pangolin
|
||||||
|
enable_ipv6: true
|
||||||
Reference in New Issue
Block a user