subhub/docker-compose.yml

88 строки
2.2 KiB
YAML

version: "3.7"
services:
base:
image: mozilla/subhub-base
container_name: base
build:
context: .
dockerfile: Dockerfile.base
sub:
container_name: sub
image: mozilla/sub
command: python3 sub/app.py
build:
context: src/sub
dockerfile: Dockerfile
args:
LOCAL_FLASK_PORT: 5000
DYNALITE_PORT: 4567
environment:
AWS_ACCESS_KEY_ID: "fake-id"
AWS_SECRET_ACCESS_KEY: "fake-key"
STRIPE_API_KEY: $STRIPE_API_KEY
SUPPORT_API_KEY: $SUPPORT_API_KEY
PAYMENT_API_KEY: $PAYMENT_API_KEY
STRIPE_MOCK_HOST: $STRIPE_MOCK_HOST
STRIPE_MOCK_PORT: $STRIPE_MOCK_PORT
DEPLOYED_BY: $DEPLOYED_BY
DEPLOYED_ENV: $DEPLOYED_ENV
DEPLOYED_WHEN: $DEPLOYED_WHEN
PROJECT_NAME: $PROJECT_NAME
BRANCH: $BRANCH
VERSION: $VERSION
REVISION: $REVISION
LOG_LEVEL: $LOG_LEVEL
STRIPE_LOCAL: $STRIPE_LOCAL
REMOTE_ORIGIN_URL: $REMOTE_ORIGIN_URL
PROFILING_ENABLED: $PROFILING_ENABLED
ports:
- "5000:5000"
depends_on:
- base
- dynalite
hub:
container_name: hub
image: mozilla/hub
command: python3 hub/app.py
build:
context: src/hub
dockerfile: Dockerfile
args:
LOCAL_FLASK_PORT: 5001
DYNALITE_PORT: 4567
environment:
AWS_ACCESS_KEY_ID: "fake-id"
AWS_SECRET_ACCESS_KEY: "fake-key"
STRIPE_API_KEY: $STRIPE_API_KEY
STRIPE_MOCK_PORT: $STRIPE_MOCK_PORT
HUB_API_KEY: $HUB_API_KEY
DEPLOYED_BY: $DEPLOYED_BY
DEPLOYED_ENV: $DEPLOYED_ENV
DEPLOYED_WHEN: $DEPLOYED_WHEN
PROJECT_NAME: $PROJECT_NAME
BRANCH: $BRANCH
VERSION: $VERSION
REVISION: $REVISION
LOG_LEVEL: $LOG_LEVEL
REMOTE_ORIGIN_URL: $REMOTE_ORIGIN_URL
PROFILING_ENABLED: $PROFILING_ENABLED
PROCESS_EVENTS_HOURS: 6
ports:
- "5001:5001"
depends_on:
- base
- dynalite
dynalite:
build: https://github.com/vitarn/docker-dynalite.git
ports:
- 4567
stripe:
image: stripemock/stripe-mock:latest
container_name: stripe
ports:
- "$STRIPE_MOCK_PORT:12112"