services: postgres: image: postgres:17-alpine restart: unless-stopped environment: POSTGRES_DB: paseo_hub POSTGRES_USER: paseo POSTGRES_PASSWORD: paseo healthcheck: test: ["CMD-SHELL", "pg_isready -U paseo -d paseo_hub"] interval: 5s timeout: 5s retries: 20 volumes: - postgres-data:/var/lib/postgresql/data hub: image: ghcr.io/getpaseo/hub:latest pull_policy: always restart: unless-stopped depends_on: postgres: condition: service_healthy env_file: .env environment: DATABASE_URL: postgres://paseo:paseo@postgres:5432/paseo_hub PORT: 3000 ports: - "3000:3000" healthcheck: test: [ "CMD", "node", "-e", "fetch('http://localhost:3000/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))", ] interval: 10s timeout: 5s retries: 10 volumes: postgres-data: