services: sori-studio-test-db: image: postgres:16-alpine container_name: sori-studio-test-db environment: POSTGRES_DB: sori_studio_test POSTGRES_USER: sori_studio_test POSTGRES_PASSWORD: sori_studio_test_password ports: - "127.0.0.1:${TEST_DB_PORT:-43091}:5432" volumes: - sori-studio-test-postgres:/var/lib/postgresql/data - ./db/migrations:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U sori_studio_test -d sori_studio_test"] interval: 1s timeout: 3s retries: 30 networks: - sori-studio-test-network volumes: sori-studio-test-postgres: networks: sori-studio-test-network: driver: bridge