anonymousland-synapse/contrib/docker/docker-compose.yml

39 lines
1.0 KiB
YAML
Raw Normal View History

2018-02-04 10:18:40 -05:00
# This compose file is compatible with Compose itself, it might need some
2018-02-04 06:55:20 -05:00
# adjustments to run properly with stack.
version: '3'
services:
synapse:
image: synapse
# Since snyapse does not retry to connect to the database, restart upon
# failure
restart: unless-stopped
2018-02-04 06:55:20 -05:00
# See the readme for a full documentation of the environment settings
environment:
- SYNAPSE_SERVER_NAME=my.matrix.host
- SYNAPSE_ENABLE_REGISTRATION=yes
2018-02-04 06:55:20 -05:00
volumes:
- ./files:/data
depends_on:
- db
2018-02-04 10:18:40 -05:00
# In order to expose Synapse, remove one of the following, you might for
# instance expose the TLS port directly:
2018-02-04 06:55:20 -05:00
ports:
- 8448:8448/tcp
2018-02-04 10:18:40 -05:00
# ... or use a reverse proxy, here is an example for traefik:
2018-02-04 06:55:20 -05:00
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:my.matrix.Host
- traefik.port=8448
db:
image: postgres:latest
# Change that password, of course!
environment:
- POSTGRES_USER=matrix
- POSTGRES_PASSWORD=changeme
volumes:
- ./schemas:/var/lib/postgresql/data