version: "3.7" services: hoppscotch-db: image: postgres:15 ports: - "5432:5432" user: postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: testpass POSTGRES_DB: hoppscotch hoppscotch-aio: container_name: hoppscotch-aio restart: unless-stopped build: dockerfile: prod.Dockerfile context: . target: aio environment: - DATABASE_URL=postgresql://postgres:testpass@hoppscotch-db:5432/hoppscotch - ENABLE_SUBPATH_BASED_ACCESS=true env_file: - ./.env ports: - "3080:80" depends_on: - hoppscotch-db command: ["sh", "-c", "pnpm exec prisma migrate deploy && node /usr/src/app/aio_run.mjs"]