-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
95 lines (90 loc) · 3.34 KB
/
docker-compose.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "3.8"
services:
firestore-emulator:
container_name: firestore-emulator
image: google/cloud-sdk:415.0.0-emulators
platform: linux/amd64
expose:
- 5173
ports:
- "5173:5173"
command: [ "gcloud", "beta", "emulators", "firestore", "start", "--host-port=0.0.0.0:5173" ]
oauth2-provider-emulator:
container_name: oauth2-provider-emulator
build: apps/oauth2-provider-emulator
expose:
- 8080
ports:
- "8081:8080"
arcane-platform-app:
container_name: arcane-platform-app
build: apps/arcane-platform-app
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/config/gcp-service-account.json
- FIRESTORE_EMULATOR_HOST=firestore-emulator:5173
- JAVA_OPTS=-Dlogback.configurationFile=logback.xml
- GCP_PROJECT_ID=${GCP_PROJECT_ID}
- METRICS_ENABLED=false
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- SENDGRID_ENABLED=false
- LEGAL_SPACE_ID=${LEGAL_SPACE_ID}
- LEGAL_SPACE_TOKEN=${LEGAL_SPACE_TOKEN}
- RESEARCH_SPACE_ID=${RESEARCH_SPACE_ID}
- RESEARCH_SPACE_TOKEN=${RESEARCH_SPACE_TOKEN}
- ALGOLIA_APP_ID=${ALGOLIA_APP_ID}
- ALGOLIA_API_KEY=${ALGOLIA_API_KEY}
- SLACK_ALERTS_CHANNEL_ID=${SLACK_ALERTS_CHANNEL_ID}
- SLACK_GENERAL_CHANNEL_ID=${SLACK_GENERAL_CHANNEL_ID}
- SLACK_INVEST_CHANNEL_ID=${SLACK_INVEST_CHANNEL_ID}
- SLACK_PRODUCT_CHANNEL_ID=${SLACK_PRODUCT_CHANNEL_ID}
- SLACK_PROFESSIONAL_INVESTORS_CHANNEL_ID=${SLACK_PROFESSIONAL_INVESTORS_CHANNEL_ID}
- SLACK_RESEARCH_CHANNEL_ID=${SLACK_RESEARCH_CHANNEL_ID}
- SLACK_RESEARCH_EVENTS_CHANNEL_ID=${SLACK_RESEARCH_EVENTS_CHANNEL_ID}
- SLACK_TOKEN=${SLACK_TOKEN}
- INVEST_DENIED_COUNTRY_CODE_LIST=${INVEST_DENIED_COUNTRY_CODE_LIST}
- INVEST_EMAIL_FROM=${INVEST_EMAIL_FROM}
- INVEST_EMAIL_TO_LIST=${INVEST_EMAIL_TO_LIST}
- INVEST_EMAIL_CC_LIST=${INVEST_EMAIL_CC_LIST}
- INVEST_EMAIL_BCC_LIST=${INVEST_EMAIL_BCC_LIST}
volumes:
- "./infra/gcp/secrets/gcp-service-account.json:/config/gcp-service-account.json:ro"
expose:
- 8080
depends_on:
- firestore-emulator
test.api.arcane.no:
container_name: esp
image: gcr.io/endpoints-release/endpoints-runtime:2
command: >
--listener_port=8080
--backend=http://arcane-platform-app:8080
--service=test.api.arcane.no
--rollout_strategy=managed
--non_gcp
--service_account_key=/config/gcp-service-account.json
expose:
- 8080
ports:
- "8080:8080"
volumes:
- "./infra/gcp/secrets/gcp-service-account.json:/config/gcp-service-account.json:ro"
depends_on:
- oauth2-provider-emulator
- arcane-platform-app
acceptance-tests:
container_name: acceptance-tests
build: apps/acceptance-tests
environment:
- BACKEND_HOST=test.api.arcane.no
- GOOGLE_APPLICATION_CREDENTIALS=/config/gcp-service-account.json
- LEGAL_SPACE_ID=${LEGAL_SPACE_ID}
- PLATFORM_TNC_VERSION=${PLATFORM_TNC_VERSION}
- PLATFORM_TNC_ENV_ID=${PLATFORM_TNC_ENV_ID}
- PLATFORM_TNC_ENTRY_ID=${PLATFORM_TNC_ENTRY_ID}
- TEST_PAGE_ID=${TEST_PAGE_ID}
- TEST_REPORT_ID=${TEST_REPORT_ID}
volumes:
- "./infra/gcp/secrets/gcp-service-account.json:/config/gcp-service-account.json:ro"
depends_on:
- test.api.arcane.no
- oauth2-provider-emulator