Files
matrix-rust-sdk/testing/matrix-sdk-integration-testing/assets/docker-compose.yml
Kévin Commaille 6e3892528c intergation-testing: Fix syntax of docker-compose.yml
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-01-29 18:01:33 +01:00

45 lines
929 B
YAML

services:
synapse:
build: .
restart: "no"
healthcheck:
disable: true
volumes:
- synapse:/data
ports:
- 8228:8008/tcp
postgres:
image: docker.io/postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: syncv3
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db:/var/lib/postgresql/data
sliding-sync-proxy:
image: ghcr.io/matrix-org/sliding-sync:v0.99.11
depends_on:
synapse:
condition: service_started
postgres:
condition: service_healthy
environment:
SYNCV3_SERVER: http://synapse:8008
SYNCV3_SECRET: SUPER_SECRET
SYNCV3_BINDADDR: ":8338"
SYNCV3_DB: "user=postgres password=postgres dbname=syncv3 sslmode=disable host=postgres"
ports:
- 8338:8338
volumes:
synapse:
db: