forked from arcanetechnology/arcane-platform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
128 lines (124 loc) · 6.4 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
services:
firestore-emulator:
container_name: firestore-emulator
image: google/cloud-sdk:488.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"
k33-backend:
container_name: k33-backend
build: apps/k33-backend
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}
- STRIPE_API_KEY=${STRIPE_API_KEY}
- STRIPE_WEBHOOK_ENDPOINT_SECRET=${STRIPE_WEBHOOK_ENDPOINT_SECRET}
- STRIPE_PRODUCT_ID_RESEARCH_TWIC=${STRIPE_PRODUCT_ID_RESEARCH_TWIC}
- STRIPE_PRODUCT_ID_RESEARCH_NN=${STRIPE_PRODUCT_ID_RESEARCH_NN}
- STRIPE_PRODUCT_ID_RESEARCH_AOC=${STRIPE_PRODUCT_ID_RESEARCH_AOC}
- STRIPE_PRODUCT_ID_RESEARCH_PRO=${STRIPE_PRODUCT_ID_RESEARCH_PRO}
- STRIPE_COUPON_CORPORATE_PLAN=${STRIPE_COUPON_CORPORATE_PLAN}
- METRICS_ENABLED=false
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
- SENDGRID_ENABLED=false
- CONTENTFUL_LEGAL_SPACE_ID=${CONTENTFUL_LEGAL_SPACE_ID}
- CONTENTFUL_LEGAL_SPACE_TOKEN=${CONTENTFUL_LEGAL_SPACE_TOKEN}
- CONTENTFUL_RESEARCH_SPACE_ID=${CONTENTFUL_RESEARCH_SPACE_ID}
- CONTENTFUL_RESEARCH_SPACE_TOKEN=${CONTENTFUL_RESEARCH_SPACE_TOKEN}
- CONTENTFUL_RESEARCH_SPACE_CMA_TOKEN=${CONTENTFUL_RESEARCH_SPACE_CMA_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_VAULT_ADMIN_CHANNEL_ID=${SLACK_VAULT_ADMIN_CHANNEL_ID}
- SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN}
- SLACK_SIGNING_SECRET=${SLACK_SIGNING_SECRET}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_TWIC=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_TWIC}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_NN=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_NN}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_AOC=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_AOC}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_PRO_TRIAL=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_PRO_TRIAL}
- SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_PRO=${SENDGRID_TEMPLATE_ID_WELCOME_TO_K33_RESEARCH_PRO}
- SENDGRID_TEMPLATE_ID_CANCEL_DURING_TRIAL_K33_RESEARCH_PRO=${SENDGRID_TEMPLATE_ID_CANCEL_DURING_TRIAL_K33_RESEARCH_PRO}
- SENDGRID_TEMPLATE_ID_NEW_USER_OFFER_K33_RESEARCH=${SENDGRID_TEMPLATE_ID_NEW_USER_OFFER_K33_RESEARCH}
- SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_TWIC=${SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_TWIC}
- SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_NN=${SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_NN}
- SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_AOC=${SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_AOC}
- SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_PRO=${SENDGRID_CONTACT_LIST_ID_K33_RESEARCH_PRO}
- SENDGRID_UNSUBSCRIBE_GROUP_ID_K33=${SENDGRID_UNSUBSCRIBE_GROUP_ID_K33}
- SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH=${SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH}
- SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_TWIC=${SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_TWIC}
- SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_NN=${SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_NN}
- SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_AOC=${SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_AOC}
- SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_PRO=${SENDGRID_UNSUBSCRIBE_GROUP_ID_K33_RESEARCH_PRO}
- GOOGLE_ANALYTICS_API_SECRET=${GOOGLE_ANALYTICS_API_SECRET}
- GOOGLE_ANALYTICS_FIREBASE_APP_ID=${GOOGLE_ANALYTICS_FIREBASE_APP_ID}
- GOOGLE_ANALYTICS_MEASUREMENT_ID=${GOOGLE_ANALYTICS_MEASUREMENT_ID}
- 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}
- FIREBLOCKS_API_KEY=${FIREBLOCKS_API_KEY}
- FIREBLOCKS_SECRET_KEY=${FIREBLOCKS_SECRET_KEY}
- COIN_GECKO_API_KEY=${COIN_GECKO_API_KEY}
- VAULT_STRIPE_API_KEY=${VAULT_STRIPE_API_KEY}
volumes:
- "./infra/gcp/secrets/gcp-service-account.json:/config/gcp-service-account.json:ro"
expose:
- 8080
depends_on:
- firestore-emulator
test.api.k33.com:
container_name: esp
image: gcr.io/endpoints-release/endpoints-runtime:2
command: >
--listener_port=8080
--backend=http://k33-backend:8080
--service=test.api.k33.com
--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
- k33-backend
acceptance-tests:
container_name: acceptance-tests
build: apps/acceptance-tests
environment:
- BACKEND_HOST=test.api.k33.com
- GOOGLE_APPLICATION_CREDENTIALS=/config/gcp-service-account.json
- CONTENTFUL_LEGAL_SPACE_ID=${CONTENTFUL_LEGAL_SPACE_ID}
- CONTENTFUL_TEST_PAGE_ID=${CONTENTFUL_TEST_PAGE_ID}
- CONTENTFUL_TEST_REPORT_ID=${CONTENTFUL_TEST_REPORT_ID}
- STRIPE_PRODUCT_ID_RESEARCH_PRO=${STRIPE_PRODUCT_ID_RESEARCH_PRO}
- STRIPE_PRICE_ID_RESEARCH_PRO=${STRIPE_PRICE_ID_RESEARCH_PRO}
volumes:
- "./infra/gcp/secrets/gcp-service-account.json:/config/gcp-service-account.json:ro"
depends_on:
- test.api.k33.com
- oauth2-provider-emulator