Files
relspecgo/docker-compose.yml
Hein 27da24f575
Some checks failed
CI / Test (1.25) (push) Successful in -25m30s
CI / Lint (push) Successful in -25m32s
CI / Build (push) Successful in -26m1s
Integration Tests / Integration Tests (push) Failing after -26m1s
CI / Test (1.24) (push) Successful in 3m1s
Better integration test.
2025-12-28 15:37:21 +02:00

24 lines
617 B
YAML

version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: relspec-test-postgres
environment:
POSTGRES_USER: relspec
POSTGRES_PASSWORD: relspec_test_password
POSTGRES_DB: relspec_test
ports:
- "5439:5432" # Using 5439 to avoid conflicts with local PostgreSQL
volumes:
- ./tests/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U relspec -d relspec_test"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: