services-garbaye/podman-matrix/container-compose.yml
2023-08-10 23:33:50 +02:00

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: