services: hoppscotch-db: image: postgres:15 user: postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-testpass} POSTGRES_DB: ${POSTGRES_DB:-hoppscotch} volumes: - hoppscotch-db:/var/lib/postgresql/data healthcheck: test: [ "CMD-SHELL", "sh -c 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'", ] interval: 5s timeout: 5s retries: 10 hoppscotch-aio: container_name: hoppscotch-aio restart: unless-stopped build: dockerfile: prod.Dockerfile context: . target: aio env_file: - ./.env environment: DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-testpass}@hoppscotch-db:5432/${POSTGRES_DB:-hoppscotch} depends_on: hoppscotch-db: condition: service_healthy command: [ "sh", "-c", "pnpm exec prisma migrate deploy && node /usr/src/app/aio_run.mjs", ] ports: - "3000:3000" - "3100:3100" - "3170:3170" - "3200:3200" - "3080:80" volumes: hoppscotch-db: