Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49e16ac93f | ||
|
|
de1ba81f03 | ||
|
|
42ccc76650 | ||
|
|
f1d2b4b252 | ||
|
|
7c5c0f0207 | ||
|
|
c2f2963fdd | ||
|
|
55cfa6902c | ||
|
|
9531ab3f71 | ||
|
|
fed12570e9 | ||
|
|
2468d3a791 | ||
|
|
21ca2e487a | ||
|
|
b4f424ee1b | ||
|
|
59ef145673 | ||
|
|
79f6d07ce5 | ||
|
|
ae1f7d3ecb | ||
|
|
ee0451a9a9 | ||
|
|
386b551347 | ||
|
|
8e101cd112 | ||
|
|
71bce0931e |
+38
-53
@@ -1,63 +1,48 @@
|
|||||||
name: pangolin
|
|
||||||
services:
|
services:
|
||||||
pangolin:
|
nginx:
|
||||||
image: docker.io/fosrl/pangolin:ee-latest
|
image: "nginx:1.22.0"
|
||||||
container_name: pangolin
|
container_name: matrix-nginx
|
||||||
restart: unless-stopped
|
restart: "always"
|
||||||
deploy:
|
networks:
|
||||||
resources:
|
- hydra-local
|
||||||
limits:
|
|
||||||
memory: 1g
|
|
||||||
reservations:
|
|
||||||
memory: 256m
|
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/pangolin/config:/app/config
|
- /opt/02_messaging/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3001/api/v1/"]
|
|
||||||
interval: "10s"
|
|
||||||
timeout: "10s"
|
|
||||||
retries: 15
|
|
||||||
|
|
||||||
gerbil:
|
synapse:
|
||||||
image: docker.io/fosrl/gerbil:latest
|
image: docker.io/matrixdotorg/synapse:latest
|
||||||
container_name: gerbil
|
container_name: matrix-synapse
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
networks:
|
||||||
pangolin:
|
- hydra-local
|
||||||
condition: service_healthy
|
environment:
|
||||||
command:
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||||
- --reachableAt=http://gerbil:3004
|
|
||||||
- --generateAndSaveKeyTo=/var/config/key
|
|
||||||
- --remoteConfig=http://pangolin:3001/api/v1/
|
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/pangolin/config/:/var/config
|
- /opt/02_messaging/synapse:/data
|
||||||
cap_add:
|
depends_on:
|
||||||
- NET_ADMIN
|
- synapse_db
|
||||||
- SYS_MODULE
|
|
||||||
ports:
|
|
||||||
- 51820:51820/udp
|
|
||||||
- 21820:21820/udp
|
|
||||||
- 443:443
|
|
||||||
- 443:443/udp # For http3 QUIC if desired
|
|
||||||
- 80:80
|
|
||||||
|
|
||||||
traefik:
|
synapse_db:
|
||||||
image: docker.io/traefik:latest
|
image: docker.io/postgres:14-alpine
|
||||||
container_name: traefik
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
network_mode: service:gerbil # Ports appear on the gerbil service
|
container_name: matrix-synapse-db
|
||||||
depends_on:
|
networks:
|
||||||
pangolin:
|
- hydra-local
|
||||||
condition: service_healthy
|
environment:
|
||||||
command:
|
- POSTGRES_USER=synapse
|
||||||
- --configFile=/etc/traefik/traefik_config.yml
|
- POSTGRES_PASSWORD=aComplexPassphraseNobodyCanGuess
|
||||||
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/pangolin/config/traefik:/etc/traefik:ro # Volume to store the Traefik configuration
|
- /opt/02_messaging/postgres:/var/lib/postgresql/data
|
||||||
- /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
|
mautrix-whatsapp:
|
||||||
|
container_name: mautrix-whatsapp
|
||||||
|
image: dock.mau.dev/mautrix/whatsapp:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- hydra-local
|
||||||
|
volumes:
|
||||||
|
- /opt/02_messaging/bridges/whatsapp:/data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
hydra-local:
|
||||||
driver: bridge
|
external: true
|
||||||
name: pangolin
|
|
||||||
enable_ipv6: true
|
|
||||||
Reference in New Issue
Block a user