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

29 lines
664 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:
test: ["CMD-SHELL", "pg_isready -U postgres"]
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
depends_on:
synapse-db:
condition: service_healthy
restart: true
volumes:
matrixdotorg_synapse-pgsql:
matrixdotorg_synapse-data: