Add matrix conf
This commit is contained in:
parent
630c92708b
commit
07c8d94957
1 changed files with 44 additions and 0 deletions
44
matrix/docker-compose.yaml
Normal file
44
matrix/docker-compose.yaml
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_DB=synapse
|
||||||
|
- POSTGRES_USER=synapse
|
||||||
|
- POSTGRES_PASSWORD=WRyu2kuArNjRxojstqpg7EfcoUP9zoka
|
||||||
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||||
|
|
||||||
|
synapse:
|
||||||
|
image: matrixdotorg/synapse:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
- proxy
|
||||||
|
volumes:
|
||||||
|
- matrix:/data
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.matrix-secure.entrypoints=https"
|
||||||
|
- "traefik.http.routers.matrix-secure.rule=Host(`matrix.mrdev023.fr`)"
|
||||||
|
- "traefik.http.routers.matrix-secure.tls=true"
|
||||||
|
- "traefik.http.routers.matrix-secure.tls.certresolver=sslResolver"
|
||||||
|
- "traefik.port=8008"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
web:
|
||||||
|
matrix:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internal:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue