This repository was archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
206 lines (190 loc) · 4.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
206 lines (190 loc) · 4.8 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
version: "3.9"
services:
database:
image: postgres:14.0-alpine3.14
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
ports:
- "${DB_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- backend
redis:
image: bitnami/redis:6.2
environment:
- REDIS_PASSWORD=${REDIS_PASS}
networks:
- backend
user-api:
restart: always
image: area/user-api
build:
context: backend
dockerfile: userAPI/Dockerfile
environment:
- API_HOST=0.0.0.0
- API_PORT=$USER_API_PORT
- API_SESSION_SECRET=$USER_API_SESSION_SECRET
- API_SESSION_MAX_AGE=$USER_API_SESSION_MAX_AGE
- API_SESSION_SECURE=$USER_API_SESSION_SECURE
- API_CORS_ORIGINS=$USER_API_CORS_ORIGINS
- DB_HOST=database
- DB_PORT
- DB_URL=postgresql://$DB_USER:$DB_PASS@database:$DB_PORT/$DB_NAME?schema=$DB_USER_SCHEMA
- REDIS_PASS
- REDIS_HOST=redis
- REDIS_PORT
- WORKFLOW_API_PORT
- WORKFLOW_API_HOST=workflow-api
- CREDENTIAL_API_PORT
- CREDENTIAL_API_HOST=credential-api
ports:
- "${USER_API_PORT}:${USER_API_PORT}"
networks:
- backend
depends_on:
- database
- redis
workflow-api:
restart: always
image: area/workflow-api
build:
context: backend
dockerfile: workflowAPI/Dockerfile
environment:
- API_HOST=0.0.0.0
- API_PORT=$WORKFLOW_API_PORT
- DB_HOST=database
- DB_PORT
- DB_URL=postgresql://$DB_USER:$DB_PASS@database:$DB_PORT/$DB_NAME?schema=$DB_WORKFLOW_SCHEMA
ports:
- "${WORKFLOW_API_PORT}:${WORKFLOW_API_PORT}"
networks:
- backend
depends_on:
- database
credential-api:
restart: always
image: area/credential-api
build:
context: backend
dockerfile: credentialAPI/Dockerfile
environment:
- API_HOST=0.0.0.0
- API_PORT=$CREDENTIAL_API_PORT
- DB_HOST=database
- DB_PORT
- DB_URL=postgresql://$DB_USER:$DB_PASS@database:$DB_PORT/$DB_NAME?schema=$DB_CREDENTIAL_SCHEMA
ports:
- "${CREDENTIAL_API_PORT}:${CREDENTIAL_API_PORT}"
networks:
- backend
depends_on:
- database
grpc-doc:
image: area/grpc-doc
build:
context: protos
dockerfile: Dockerfile
ports:
- "${GRPC_DOC_PORT}:80"
# ------------- OBELIX -------------
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 22181
networks:
- obelix
kafka:
image: confluentinc/cp-kafka:latest
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:22181
KAFKA_LISTENERS: INTERNAL://0.0.0.0:19091,OUTSIDE://0.0.0.0:19092
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:19092,OUTSIDE://kafka:19092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
networks:
- obelix
depends_on:
- zookeeper
redis-idefix:
image: bitnami/redis:6.2
environment:
- REDIS_PASSWORD=${REDIS_PASS_IDEFIX}
networks:
- obelix
idefix:
restart: always
image: area/idefix
build:
context: obelix/idefix
dockerfile: Dockerfile
environment:
- REDIS_ADDR=redis-idefix:${REDIS_PORT_IDEFIX}
- REDIS_PASS=${REDIS_PASS_IDEFIX}
- PRODUCER_ENDPOINT=kafka:19092
- TIME_INTERVAL
- WORKFLOW_API_PORT
- WORKFLOW_API_HOST=workflow-api
- CREDENTIAL_API_PORT
- CREDENTIAL_API_HOST=credential-api
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GOOGLE_REDIRECT_URL
- GITHUB_CLIENT_ID
- GITHUB_CLIENT_SECRET
- COINMARKETCAP_CLIENT_ID
depends_on:
- redis-idefix
networks:
- backend
- obelix
panoramix:
restart: always
image: area/panoramix
build:
context: obelix/panoramix
dockerfile: Dockerfile
environment:
- BROKER_ADDRESS=kafka:19092
- WORKFLOW_API_HOST=workflow-api
- WORKFLOW_API_PORT
- CREDENTIAL_API_PORT
- CREDENTIAL_API_HOST=credential-api
- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- GOOGLE_REDIRECT_URL
- NOTION_CLIENT_ID
- NOTION_CLIENT_SECRET
- NOTION_REDIRECT_URL
- INFURA_ENDPOINT
depends_on:
- idefix
networks:
- backend
- obelix
client_mobile:
image: area/client_mobile
build:
context: frontend
dockerfile: Dockerfile
volumes:
- mobile_data:/home/developer
proxy:
image: nginx:latest
ports:
- "80:80"
volumes:
- $PWD/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- backend
networks:
backend:
obelix:
volumes:
mobile_data:
postgres_data: