version: '3.8' services: postgres-test: image: postgres:16-alpine environment: POSTGRES_USER: app POSTGRES_PASSWORD: testpass POSTGRES_DB: memory ports: - "5433:5432" volumes: - postgres-test-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U app -d memory"] interval: 2s timeout: 5s retries: 10 volumes: postgres-test-data: