This repository has been archived by the owner on Oct 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
65 lines (61 loc) · 1.77 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# 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"