зеркало из https://github.com/mozilla/subhub.git
66 строки
1.8 KiB
YAML
66 строки
1.8 KiB
YAML
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
base:
|
|
image: mozilla/subhub-base
|
|
container_name: base
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.base
|
|
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: 8000
|
|
environment:
|
|
AWS_ACCESS_KEY_ID: "fake-id"
|
|
AWS_SECRET_ACCESS_KEY: "fake-key"
|
|
BASKET_API_KEY: $BASKET_API_KEY
|
|
BRANCH: $BRANCH
|
|
DELETED_USER_TABLE: $DELETED_USER_TABLE
|
|
DEPLOYED_BY: $DEPLOYED_BY
|
|
DEPLOYED_ENV: $DEPLOYED_ENV
|
|
DEPLOYED_WHEN: $DEPLOYED_WHEN
|
|
EVENT_TABLE: $EVENT_TABLE
|
|
LOCAL_HUB_FLASK_PORT: $LOCAL_HUB_FLASK_PORT
|
|
LOG_LEVEL: $LOG_LEVEL
|
|
HUB_API_KEY: $HUB_API_KEY
|
|
PROCESS_EVENTS_HOURS: 6
|
|
PROFILING_ENABLED: $PROFILING_ENABLED
|
|
PROJECT_NAME: $PROJECT_NAME
|
|
REMOTE_ORIGIN_URL: $REMOTE_ORIGIN_URL
|
|
SALESFORCE_BASKET_URI: $SALESFORCE_BASKET_URI
|
|
STRIPE_API_KEY: $STRIPE_API_KEY
|
|
STRIPE_LOCAL: $STRIPE_LOCAL
|
|
STRIPE_MOCK_PORT: $STRIPE_MOCK_PORT
|
|
STRIPE_REQUEST_TIMEOUT: $STRIPE_REQUEST_TIMEOUT
|
|
VERSION: $VERSION
|
|
REVISION: $REVISION
|
|
ports:
|
|
- "5001:5001"
|
|
depends_on:
|
|
- base
|
|
- stripe
|
|
- dynamodb
|
|
|
|
dynamodb:
|
|
image: amazon/dynamodb-local:latest
|
|
container_name: dynamodb-local
|
|
ports:
|
|
- 8000:8000
|
|
|
|
stripe:
|
|
image: stripemock/stripe-mock:latest
|
|
container_name: stripe
|
|
ports:
|
|
- "$STRIPE_MOCK_PORT:12112"
|