# Disposable integration database only. Production uses compose.production.yml. name: randomayzer-integration services: postgres: image: postgres:16-alpine container_name: randomayzer-integration-postgres restart: "no" user: postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: randomayzer-integration-only POSTGRES_DB: randomayzer_test ports: - "127.0.0.1:${RANDOMAYZER_TEST_DB_PORT:-55439}:5432" volumes: - pgdata:/var/lib/postgresql/data networks: [database] mem_limit: 512m cpus: 1.0 healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres -d randomayzer_test"] interval: 2s timeout: 3s retries: 30 volumes: pgdata: name: randomayzer-integration-pgdata networks: database: name: randomayzer-integration-database