# The database for local development: `docker compose up -d`, then see docs/local-development.md. services: postgres: image: postgres:17-alpine environment: POSTGRES_DB: kooltap POSTGRES_USER: kooltap POSTGRES_PASSWORD: kooltap ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data # Creates kooltap_test for the end-to-end tests - ./scripts/create-test-database.sql:/docker-entrypoint-initdb.d/create-test-database.sql:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U kooltap"] interval: 5s timeout: 5s retries: 5 volumes: pgdata: