This repository has been archived by the owner on Jan 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
223 lines (211 loc) · 5.53 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
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
version: '3.4'
services:
openeo-base:
build:
context: ./base
image: oeo-base-$OPENEO_VERSION
container_name: oeo-base-$OPENEO_VERSION
command: echo
network_mode: none
rabbitmq:
image: rabbitmq:3.8-management
container_name: oeo-rabbitmq-$OPENEO_VERSION
hostname: rabbitmq
env_file:
- ./envs/rabbitmq.env
jobs_db:
image: postgres
container_name: oeo-jobs-db-$OPENEO_VERSION
restart: always
hostname: jobs_db
volumes:
- /srv/openeo/$OPENEO_VERSION/data/jobs_db_data:/var/lib/postgresql/data
env_file:
- ./envs/jobs.env
processes_db:
image: postgres
container_name: oeo-processes-db-$OPENEO_VERSION
restart: always
hostname: processes_db
volumes:
- /srv/openeo/$OPENEO_VERSION/data/processes_db_data:/var/lib/postgresql/data
env_file:
- ./envs/processes.env
users_db:
image: postgres
container_name: oeo-users-db-$OPENEO_VERSION
restart: always
hostname: users_db
volumes:
- /srv/openeo/$OPENEO_VERSION/data/users_db_data:/var/lib/postgresql/data
env_file:
- ./envs/users.env
openeo-gateway:
image: oeo-gateway-$OPENEO_VERSION
build:
context: ./gateway
args:
OPENEO_VERSION: $OPENEO_VERSION
container_name: oeo-gateway-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/gateway.env
- ./envs/users.env
- ./envs/files.env
volumes:
- files-data:/usr/src/files
- $SYNC_RESULTS_FOLDER:/usr/src/sync-results
- $LOG_DIR:/usr/src/logs
- ./gateway/openapi.yaml:/usr/src/app/openapi.yaml
environment:
OEO_OPENEO_VERSION: $OPENEO_VERSION
ports:
- $GATEWAY_PORT:3000
openeo-users:
build:
context: ./services/users
args:
OPENEO_VERSION: $OPENEO_VERSION
image: oeo-users-$OPENEO_VERSION
container_name: oeo-users-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-gateway
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/users.env
volumes:
- $LOG_DIR:/usr/src/log
environment:
OEO_OPENEO_VERSION: $OPENEO_VERSION
OEO_LOG_DIR: /usr/src/log
openeo-capabilities:
build:
context: ./services/capabilities
args:
OPENEO_VERSION: $OPENEO_VERSION
image: oeo-capabilities-$OPENEO_VERSION
container_name: oeo-capabilities-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-gateway
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/gateway.env
volumes:
- $LOG_DIR:/usr/src/logs
environment:
OEO_OPENEO_VERSION: $OPENEO_VERSION
OEO_LOG_DIR: /usr/src/logs
openeo-data:
build:
context: ./services/data
args:
OPENEO_VERSION: $OPENEO_VERSION
image: oeo-data-$OPENEO_VERSION
container_name: oeo-data-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-gateway
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/csw.env
- ./envs/wekeo_hda.env
- ./envs/gateway.env
- ./envs/data.env
environment:
OEO_OPENEO_VERSION: $OPENEO_VERSION
OEO_LOG_DIR: /usr/src/logs
volumes:
- eo-discovery-cache:/usr/src/cache
- $LOG_DIR:/usr/src/logs
openeo-processes:
build:
context: ./services/processes
args:
OPENEO_VERSION: $OPENEO_VERSION
image: oeo-processes-$OPENEO_VERSION
container_name: oeo-processes-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-gateway
- processes_db
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/processes.env
environment:
OPENEO_VERSION: $OPENEO_VERSION
PROCESS_API_DIR: /usr/src/api
OEO_LOG_DIR: /usr/src/logs
volumes:
- process-api-data:/usr/src/api
- $LOG_DIR:/usr/src/logs
openeo-jobs:
build:
context: ./services/jobs
args:
OPENEO_VERSION: $OPENEO_VERSION
image: oeo-jobs-$OPENEO_VERSION
container_name: oeo-jobs-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-gateway
- jobs_db
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/jobs.env
- ./envs/csw.env
- ./envs/gateway.env
environment:
OEO_OPENEO_VERSION: $OPENEO_VERSION
OEO_AIRFLOW_DAGS: /usr/src/dags
OEO_SYNC_RESULTS_FOLDER: /usr/src/sync-results
AIRFLOW_LOG_DIR: /usr/src/logs/airflow
OEO_LOG_DIR: /usr/src/logs
volumes:
- $AIRFLOW_DAGS:/usr/src/dags
- $SYNC_RESULTS_FOLDER:/usr/src/sync-results
- files-data:/usr/src/files
- $LOG_DIR:/usr/src/logs
openeo-files:
build:
context: ./services/files
args:
OPENEO_VERSION: $OPENEO_VERSION
image: oeo-files-$OPENEO_VERSION
container_name: oeo-files-$OPENEO_VERSION
restart: on-failure
depends_on:
- rabbitmq
- openeo-gateway
- openeo-base
env_file:
- ./envs/rabbitmq.env
- ./envs/files.env
environment:
OEO_OPENEO_VERSION: $OPENEO_VERSION
OEO_LOG_DIR: /usr/src/logs
volumes:
- files-data:/usr/src/files
- $LOG_DIR:/usr/src/logs
volumes:
process-api-data:
name: ${PROJECT_NAME}-${OPENEO_VERSION}-process-api-data
eo-discovery-cache:
name: ${PROJECT_NAME}-${OPENEO_VERSION}-eo-discovery-cache
files-data:
name: ${PROJECT_NAME}-${OPENEO_VERSION}-files-data