-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
149 lines (142 loc) · 5.99 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
services:
typescript-services:
platform: linux/amd64
image: us-docker.pkg.dev/integrationos/docker-oss/typescript-services:1.24.0
ports:
- 3001:3001
environment:
- BUILDABLE_SECRET=${BUILDABLE_SECRET}
- CONNECTIONS_API_BASE_URL=http://connections-api:3005/
- DEFAULT_CLIENT_THROUGHPUT=500
- DEFAULT_LIVE_ACCESS_KEY=${DEFAULT_LIVE_ACCESS_KEY}
- DEFAULT_TEST_ACCESS_KEY=${DEFAULT_TEST_ACCESS_KEY}
- DEMO_ACCOUNT_EVENT_ACCESS_KEY=${DEVELOPER_ACCOUNT_ACCESS_KEY}
- ENGINEERING_ACCOUNT_BUILDABLE_ID=${DEVELOPER_ACCOUNT_ID}
- EVENT_ACCESS_ENCRYPTION_PASSWORD=${EVENT_ACCESS_PASSWORD}
- JWT_AUDIENCE=integrationos-users
- JWT_EXPIRES_AFTER=90d
- JWT_ISSUER=integrationos
- JWT_SECRET=${JWT_SECRET}
- MONGO_DB_NAME=events-service
- MONGO_URI=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017/events-service?authSource=admin
- NODE_ENV=localhost
- QA_ACCOUNT_BUILDABLE_ID=build-${DEVELOPER_ACCOUNT_ID}
- QA_ACCOUNT_EVENT_ACCESS_KEY=${DEVELOPER_ACCOUNT_ACCESS_KEY}
- SALT_ROUNDS=10
- SECRETS_SERVICE_BASE_URL=http://connections-api:3005/
connections-api:
platform: linux/amd64
image: us-docker.pkg.dev/integrationos/docker-oss/api:1.24.0
ports:
- 3005:3005
environment:
- ACCESS_KEY_WHITELIST_REFRESH_INTERVAL_SECS=30
- CACHE_SIZE=1000
- CONTROL_DATABASE_NAME=events-service
- CONTROL_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- DEBUG_MODE=false
- ENGINEERING_ACCOUNT_ID=${DEVELOPER_ACCOUNT_ID}
- EVENT_ACCESS_PASSWORD=${EVENT_ACCESS_PASSWORD}
- EVENT_DATABASE_NAME=events-service
- EVENT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
- GOOGLE_KMS_KEY_ID=${KMS_KEY_ID}
- GOOGLE_KMS_KEY_RING_ID=${KMS_KEY_RING_ID}
- GOOGLE_KMS_LOCATION_ID=${GCP_LOCATION_ID}
- GOOGLE_KMS_PROJECT_ID=${GCP_PROJECT_ID}
- INTERNAL_SERVER_ADDRESS=0.0.0.0:3005
- IOS_CRYPTO_SECRET=${IOS_CRYPTO_SECRET}
- JWT_SECRET=${JWT_SECRET}
- REDIS_URL=redis://redis:6379
- RUST_LOG=api=info,tower_http=info,udm=info,integrationos_domain=info
- SECRETS_SERVICE_PROVIDER=google-kms
- WORKER_THREADS=4
volumes:
- ${HOME}/.config/gcloud:/root/.config/gcloud:ro
event-core:
platform: linux/amd64
image: us-docker.pkg.dev/integrationos/docker-oss/event-core:1.24.0
environment:
- CONTEXT_COLLECTION_NAME=event-transactions
- CONTEXT_DATABASE_NAME=events-service
- CONTEXT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- CONTROL_DATABASE_NAME=events-service
- CONTROL_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- EVENT_DATABASE_NAME=events-service
- EVENT_DATABASE_URL-mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- GOOGLE_APPLICATION_CREDENTIALS=/root/.config/gcloud/application_default_credentials.json
- GOOGLE_KMS_KEY_ID=${KMS_KEY_ID}
- GOOGLE_KMS_KEY_RING_ID=${KMS_KEY_RING_ID}
- GOOGLE_KMS_LOCATION_ID=${GCP_LOCATION_ID}
- GOOGLE_KMS_PROJECT_ID=${GCP_PROJECT_ID}
- IOS_CRYPTO_SECRET=${IOS_CRYPTO_SECRET}
- REDIS_URL=redis://redis:6379
- RUST_LOG=event_core=info
- SECRETS_SERVICE_PROVIDER=google-kms
volumes:
- ${HOME}/.config/gcloud:/root/.config/gcloud:ro
gateway:
platform: linux/amd64
image: us-docker.pkg.dev/integrationos/docker-oss/gateway:1.24.0
ports:
- 3002:3002
environment:
- CONTEXT_COLLECTION_NAME=event-transactions
- CONTEXT_DATABASE_NAME=events-service
- CONTEXT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- CONTROL_DATABASE_NAME=events-service
- CONTROL_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- EVENT_DATABASE_NAME=events-service
- EVENT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- REDIS_URL=redis://redis:6379
- RUST_LOG=gateway=info,tower_http=info
- SECRET=${GATEWAY_SECRET}
- SERVER_ADDRESS=0.0.0.0:3002
oauth-refresh:
platform: linux/amd64
image: us-docker.pkg.dev/integrationos/docker-oss/oauth-refresh:1.24.0
ports:
- 3003:3003
environment:
- APP_URL=0.0.0.0:3003
- BURST_RATE_LIMIT=1
- BURST_SIZE_LIMIT=30
- CONTEXT_COLLECTION_NAME=event-transactions
- CONTEXT_DATABASE_NAME=events-service
- CONTEXT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- CONTROL_DATABASE_NAME=events-service
- CONTROL_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- CREATE_SECRET_PATH=http://connections-api:3005/v1/secrets
- ENVIRONMENT=production
- EVENT_DATABASE_NAME=events-service
- EVENT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- GET_SECRET_PATH=http://connections-api:3005/v1/secrets
- HOST=0.0.0.0
- JWT_SECRET=${JWT_SECRET}
- PORT=3003
- REFRESH_BEFORE_IN_MINUTES=10
- RUST_LOG=info
- SLEEP_TIMER_IN_SECONDS=60
watchdog:
platform: linux/amd64
image: us-docker.pkg.dev/integrationos/docker-oss/watchdog:1.24.0
environment:
- CONTEXT_COLLECTION_NAME=event-transactions
- CONTEXT_DATABASE_NAME=events-service
- CONTEXT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- CONTROL_DATABASE_NAME=events-service
- CONTROL_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- EVENT_DATABASE_NAME=events-service
- EVENT_DATABASE_URL=mongodb://integrationos:${MONGO_PASSWORD}@mongo:27017
- POLL_DURATION=1000
- REDIS_URL=redis://redis:6379
- RUST_LOG=watchdog=info
mongo:
image: mongo:6.0
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
- MONGO_INITDB_ROOT_USERNAME=integrationos
redis:
image: redis:7.0