-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
207 lines (181 loc) · 5.13 KB
/
docker-compose.dev.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
volumes:
minio_data:
external: false
postgres_data:
external: false
rabbitmq_data:
external: false
rabbitmq_log:
external: false
registry_data:
external: false
services:
db:
image: postgres:14
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=accelerator
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:3-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_DEFAULT_VHOST=accelerator-native-jobs
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq_data:/var/lib/rabbitmq
- rabbitmq_log:/var/log/rabbitmq
minio:
image: minio/minio
ports:
- 9000:9000
- 9001:9001
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
- "${MINIO_DEV_CERT_LOCATION:?err}:/root/.minio/certs"
env_file:
- ./.env.minio
titiler:
build:
context: "${TITILER_FOLDER:?err}"
dockerfile: dockerfiles/Dockerfile.uvicorn
platform: linux/x86_64
ports:
- 8002:8000
environment:
- PORT=8000
- WORKERS_PER_CORE=1
- TITILER_API_DEBUG=1
- GDAL_HTTP_CURL_OPTIONS='-k'
web_be:
build:
context: "${PROJECT_FOLDER:?err}"
dockerfile: Dockerfile.dev
volumes:
- "${PROJECT_FOLDER:?err}:/app/"
ports:
- 8000:8000
- 20102:20102
env_file:
- ./.env.web.be
depends_on:
- db
- minio
- rabbitmq
web_fe:
build:
context: "${WEBCLI_PROJECT_FOLDER:?err}"
dockerfile: Dockerfile.dev
volumes:
- "${WEBCLI_PROJECT_FOLDER:?err}:/app/"
ports:
- 8080:8080
env_file:
- ./.env.web.fe
depends_on:
- web_be
# convertert:
# build:
# context: "/Users/wrufesh/iiasa/accli/example_job_folder"
# dockerfile: Dockerfile
# command: sleep infinity
# volumes:
# - "/Users/wrufesh/iiasa/accli/example_job_folder:/app/"
acli:
build:
context: "${ACLI_PROJECT_FOLDER:?err}"
dockerfile: Dockerfile.dev
command: sleep infinity
volumes:
- "${ACLI_PROJECT_FOLDER:?err}:/app/"
celery:
build:
context: "${CELERY_PROJECT_FOLDER:?err}"
dockerfile: Dockerfile.dev
# command: sleep infinity
env_file:
- ./.env.celery
volumes:
- "${CELERY_PROJECT_FOLDER:?err}:/home/nonroot/app/"
depends_on:
- web_be
- rabbitmq
# image-builder-celery:
# build:
# context: "${CELERY_PROJECT_FOLDER:?err}"
# # dockerfile: Dockerfile.image.builder.worker.dev
# dockerfile: Dockerfile.buildah
# # privileged: true
# env_file:
# - ./.env.celery
# volumes:
# - "${CELERY_PROJECT_FOLDER:?err}:/home/nonroot/app/"
# depends_on:
# - web_be
# - rabbitmq
# - registry
k8s_events:
build:
context: "${CELERY_PROJECT_FOLDER:?err}"
dockerfile: Dockerfile.k8s.events.dev
env_file:
- ./.env.celery
volumes:
- "${CELERY_PROJECT_FOLDER:?err}:/app/"
depends_on:
- web_be
- rabbitmq
wkubecmd:
build:
context: "${WKUBECMD_WRAPPER_PROJECT_FOLDER:?err}"
dockerfile: Dockerfile.dev
environment:
- ACC_JOB_GATEWAY_SERVER=http://web_be:8000/
- ACC_JOB_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiSk9CIiwiY2FuX3JlZ2lzdGVyX3ZhbGlkYXRpb25fdHlwZXMiOltdLCJ1c2VyX2lkIjoxLCJqb2JfaWQiOjIzMSwiZXhwIjoxNzYzMDg2MTM5fQ.jRKBRv01t_LdqCh_qO3aPxtwdZJMLHVzSemHX8ezywc
command: sleep infinity
volumes:
- "${WKUBECMD_WRAPPER_PROJECT_FOLDER:?err}:/app/"
# accms:
# build:
# context: "${ACCMS_PROJECT_FOLDER:?err}"
# dockerfile: Dockerfile.dev
# ports:
# - 8001:8000
# volumes:
# - "${ACCMS_PROJECT_FOLDER:?err}:/app/"
registry:
image: registry:2
ports:
- "5000:5000"
- "8443:8443"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/lib/registry
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_HTTP_ADDR: registry:8443
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/server.crt
REGISTRY_HTTP_TLS_KEY: /certs/server.key
# Way to generate htpasswd file
# docker run --rm --entrypoint htpasswd httpd:2 -Bbn myregistry myregistrypassword > services_docker_compose_for_dev/registry_auth/htpasswd
volumes:
- registry_data:/var/lib/registry
- ./registry_auth:/auth
- ./registry_certs:/certs
# nginx:
# build:
# context: ../devnginx
# dockerfile: Dockerfile.dev
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx.conf.d/fe.nginx.conf:/etc/nginx/conf.d/fe.nginx.conf
# - ./nginx.conf.d/wagtail.nginx.conf:/etc/nginx/conf.d/wagtail.nginx.conf