version: "3"
services:
postgres:
build:
dockerfile: postgres.dockerfile
context: .
healthcheck:
test: /usr/bin/pg_isready -U postgres
interval: 5s
timeout: 10s
retries: 120
ports:
- 5454:5432
integration:
build:
dockerfile: integration.dockerfile
context: .
environment:
POSTGRES_HOST: "postgres"
RUST_BACKTRACE: "0"
depends_on:
postgres:
condition: service_healthy