You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
472 B
YAML

version: '3'
services:
synapse:
image: matrixdotorg/synapse:latest
restart: always
ports:
- "8008:8008"
volumes:
- ./synapse_data/:/data/
links:
- db
db:
image: postgres:alpine
expose:
- 5432
restart: always
volumes:
- ./postgres_data/:/var/lib/postgresql/data/
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: matrix
POSTGRES_PASSWORD: your-secret-pw