services: app: build: . ports: - '${APP_PORT:-3001}:3000' env_file: .env environment: - DATABASE_URL=postgresql://sub2apipay:${DB_PASSWORD:-password}@db:5432/sub2apipay - HOSTNAME=0.0.0.0 depends_on: db: condition: service_healthy networks: - default - sub2api-network restart: unless-stopped db: image: postgres:16-alpine environment: POSTGRES_USER: sub2apipay POSTGRES_PASSWORD: ${DB_PASSWORD:-password} POSTGRES_DB: sub2apipay volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ['CMD-SHELL', 'pg_isready -U sub2apipay'] interval: 5s timeout: 5s retries: 10 restart: unless-stopped volumes: pgdata: networks: sub2api-network: external: true name: deploy_default