version: "3" services: # Postgres postgres: image: postgres:latest ports: # Accessible from the host at port :35432 - "35432:5432" environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: saas # Make sure log colors show up correctly tty: true # Prisma Studio studio: build: context: . dockerfile: Dockerfile.studio depends_on: - postgres environment: DATABASE_URL: postgres://postgres:postgres@postgres:5432/saas ports: - "5555:5555" # Make sure log colors show up correctly tty: true # Stripe Webhook CLI stripe: image: stripe/stripe-cli:latest command: listen --forward-to host.docker.internal:3000/api/stripe/webhooks --log-level warn extra_hosts: - "host.docker.internal:host-gateway" environment: STRIPE_API_KEY: ${STRIPE_SECRET_API_KEY} # Make sure log colors show up correctly tty: true