services-garbaye/podman-matrix/container-compose.yml

35 lines
826 B
YAML
Raw Normal View History

2023-07-29 13:51:24 +00:00
services:
synapse-db:
image: "${postgres_image}:${postgres_version}"
container_name: synapse-db
volumes:
- matrixdotorg_synapse-pgsql:/var/lib/postgresql/data/:Z
healthcheck:
2023-08-10 21:33:50 +00:00
test: ["CMD-SHELL", "pg_isready -U synapse"]
2023-07-29 13:51:24 +00:00
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
2023-07-29 13:51:24 +00:00
depends_on:
synapse-db:
condition: service_healthy
restart: true
volumes:
matrixdotorg_synapse-pgsql:
matrixdotorg_synapse-data: