# Local development database. One Postgres server holds two databases: # `deadhead` for development and `deadhead_test` for automated tests. services: postgres: image: postgres:18 restart: unless-stopped environment: POSTGRES_USER: deadhead POSTGRES_PASSWORD: deadhead POSTGRES_DB: deadhead ports: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql - ./docker/postgres/init:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U deadhead -d deadhead_test"] interval: 2s timeout: 5s retries: 30 volumes: postgres-data: