docker-stacks/synapse/docker-compose.yml

24 lines
775 B
YAML
Raw Normal View History

2020-08-05 17:50:51 +00:00
version: '3.7'
services:
synapse:
# https://hub.docker.com/r/matrixdotorg/synapse
# https://github.com/matrix-org/synapse/tree/master/docker
image: "matrixdotorg/synapse:${IMAGE_VERSION:-latest}"
container_name: synapse
# This way we'll be able to access PostgreSQL on local machine using 'localhost' when it's listening only locally.
network_mode: host
2020-08-05 20:17:36 +00:00
ports:
- "${INTERFACE_EXT:-127.0.0.1}:${HTTP_PORT_EXT:-8008}:${HTTP_PORT_INT:-8008}/tcp"
2020-08-05 17:50:51 +00:00
volumes:
- "${DATA_PATH:-./data}:/data"
# SSL certs directory
- "${SSL_PATH:-./ssl}:/ssl:ro"
2020-08-05 17:50:51 +00:00
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"