synapse-config/docker-compose.yml

26 lines
769 B
YAML
Raw Normal View History

2024-04-13 16:33:38 +02:00
version: "3.3"
services:
synapse:
image: "matrixdotorg/synapse:latest"
container_name: "synapse"
volumes:
- "./data:/data"
environment:
- VIRTUAL_HOST=matrix.4rs.nl
- VIRTUAL_PORT=8008
- SYNAPSE_SERVER_NAME=4rs.nl
- SYNAPSE_REPORT_STATS=no
ports:
- "8008:8008/tcp"
- "8448:8448/tcp"
postgresql:
image: postgres:latest
restart: always
environment:
POSTGRES_PASSWORD: somepassword
POSTGRES_USER: synapse
POSTGRES_DB: synapse
POSTGRES_INITDB_ARGS: "--encoding='UTF8' --lc-collate='C' --lc-ctype='C'"
volumes:
- "./postgresdata:/var/lib/postgresql"