Update compose.yaml
This commit is contained in:
+10
-21
@@ -2,31 +2,12 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
traefik:
|
|
||||||
image: "traefik"
|
|
||||||
container_name: matrix-traefik
|
|
||||||
restart: "always"
|
|
||||||
command:
|
|
||||||
- "--api=true"
|
|
||||||
- "--providers.docker=true"
|
|
||||||
- "--providers.docker.exposedbydefault=false"
|
|
||||||
- "--entrypoints.web.address=:80"
|
|
||||||
- "--entrypoints.websecure.address=:443"
|
|
||||||
- "--certificatesresolvers.letls.acme.email=admin@doeringer.eu"
|
|
||||||
- "--certificatesresolvers.letls.acme.storage=/certs/acme.json"
|
|
||||||
- "--certificatesresolvers.letls.acme.httpchallenge=true"
|
|
||||||
- "--certificatesresolvers.letls.acme.httpchallenge.entrypoint=web"
|
|
||||||
ports:
|
|
||||||
- "443:443"
|
|
||||||
- "80:80"
|
|
||||||
volumes:
|
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
||||||
- "/opt/02_messaging/traefik/traefik_certs:/certs"
|
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: "nginx:1.22.0"
|
image: "nginx:1.22.0"
|
||||||
container_name: matrix-nginx
|
container_name: matrix-nginx
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/02_messaging/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
|
- /opt/02_messaging/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
|
||||||
@@ -34,6 +15,8 @@ services:
|
|||||||
image: docker.io/matrixdotorg/synapse:v1.63.0
|
image: docker.io/matrixdotorg/synapse:v1.63.0
|
||||||
container_name: matrix-synapse
|
container_name: matrix-synapse
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
environment:
|
environment:
|
||||||
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||||
volumes:
|
volumes:
|
||||||
@@ -45,9 +28,15 @@ services:
|
|||||||
image: docker.io/postgres:14-alpine
|
image: docker.io/postgres:14-alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: matrix-synapse-db
|
container_name: matrix-synapse-db
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=synapse
|
- POSTGRES_USER=synapse
|
||||||
- POSTGRES_PASSWORD=aComplexPassphraseNobodyCanGuess
|
- POSTGRES_PASSWORD=aComplexPassphraseNobodyCanGuess
|
||||||
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/02_messaging/postgres:/var/lib/postgresql/data
|
- /opt/02_messaging/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
bragi-local:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user