35 lines
826 B
YAML
35 lines
826 B
YAML
|
|
services:
|
|
synapse-db:
|
|
image: "${postgres_image}:${postgres_version}"
|
|
container_name: synapse-db
|
|
volumes:
|
|
- matrixdotorg_synapse-pgsql:/var/lib/postgresql/data/:Z
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U synapse"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
synapse:
|
|
image: "${synapse_image}:${synapse_version}"
|
|
container_name: synapse
|
|
ports:
|
|
- ${listen_if}:${listen_port}:8008
|
|
volumes:
|
|
- matrixdotorg_synapse-data:/data:Z
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
depends_on:
|
|
synapse-db:
|
|
condition: service_healthy
|
|
restart: true
|
|
|
|
volumes:
|
|
matrixdotorg_synapse-pgsql:
|
|
matrixdotorg_synapse-data:
|