services: db: image: postgres ports: - "5432:5432" environment: POSTGRES_HOST_AUTH_METHOD: trust redis: image: redis:latest web: &app platform: linux/amd64 # Use JAZZBAND_IMAGE if set (for CI), otherwise build locally image: ${JAZZBAND_IMAGE:-} build: context: . dockerfile: ${DOCKERFILE:-Dockerfile} volumes: - .:/app - cache:/app/.cache:delegated command: sh -c 'wait-for-it db:5432 redis:6379 -- honcho start -f Procfile.dev web' environment: # pass those two into the environment # but also response the .env file for the rest FLASK_APP: jazzband/app.py FLASK_DEBUG: 1 # Force HTTP for OAuth OAUTHLIB_INSECURE_TRANSPORT: '1' env_file: - .env ports: - "5000:5000" links: - db - redis - email labels: - dev.orbstack.domains=jazzband.local worker: <<: *app command: sh -c 'wait-for-it db:5432 redis:6379 -- honcho start -f Procfile.dev worker' ports: [] email: image: maildev/maildev ports: - "1080:80" - "1025:1025" volumes: cache: