2022-02-14 14:40:24 +01:00
|
|
|
version: '3.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: matrixdotorg/synapse:${synapse_version:-latest}
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /media/matrix/matrix_data:/data
|
2022-04-03 22:11:51 +02:00
|
|
|
- custom_modules:/usr/local/lib/python3.9/site-packages/custom_modules
|
2022-02-14 15:37:35 +01:00
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=matrix.jfreudenberger.de # the domain where the service should be reached
|
2022-02-14 15:42:38 +01:00
|
|
|
- VIRTUAL_PORT=8008 # the port the service listens in the container
|
2022-02-14 15:37:35 +01:00
|
|
|
- LETSENCRYPT_HOST=matrix.jfreudenberger.de # the same domain as VIRTUAL_HOST; this enables ssl
|
2022-02-14 14:40:24 +01:00
|
|
|
networks:
|
|
|
|
- server
|
2022-02-14 15:47:03 +01:00
|
|
|
- webproxy
|
2022-03-01 23:00:21 +01:00
|
|
|
- synapsenet
|
2022-02-14 14:40:24 +01:00
|
|
|
|
|
|
|
postgresql:
|
|
|
|
image: postgres:${postgres_version:-13}
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=synapse
|
|
|
|
- POSTGRES_USER=synapse
|
|
|
|
- POSTGRES_DB=synapse
|
|
|
|
- POSTGRES_INITDB_ARGS=--encoding='UTF8' --lc-collate='C' --lc-ctype='C'
|
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- server
|
|
|
|
|
|
|
|
volumes:
|
2022-03-01 23:38:37 +01:00
|
|
|
custom_modules:
|
2022-02-14 14:40:24 +01:00
|
|
|
postgres_data:
|
|
|
|
|
|
|
|
networks:
|
2022-02-14 15:47:03 +01:00
|
|
|
server:
|
|
|
|
external: false
|
|
|
|
webproxy:
|
|
|
|
external: true
|
2022-03-01 23:00:21 +01:00
|
|
|
synapsenet:
|
2022-03-01 23:18:20 +01:00
|
|
|
name: synapsenet
|