-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.dev.yml
192 lines (175 loc) · 4.45 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
version: '3.7'
# Settings and configurations that are common for all containers
x-minio-common: &minio-common
image: quay.io/minio/minio:RELEASE.2022-01-25T19-56-04Z
command: server --console-address ":9001" http://minio{1...4}/data
expose:
- "9000"
- "9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
services:
mongo:
image: mongo:5.0
ports:
- "27017:27017"
networks:
- clowder2
volumes:
- mongo:/data/db
minio1:
<<: *minio-common
hostname: minio1
volumes:
- data1:/data
minio2:
<<: *minio-common
hostname: minio2
volumes:
- data2:/data
minio3:
<<: *minio-common
hostname: minio3
volumes:
- data3:/data
minio4:
<<: *minio-common
hostname: minio4
volumes:
- data4:/data
minio-nginx:
image: nginx:1.19.2-alpine
hostname: nginx
volumes:
- ./deployments/docker/minio-nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
depends_on:
- minio1
- minio2
- minio3
- minio4
postgres:
image: postgres
networks:
- clowder2
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak_dev
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak:20.0
volumes:
- ./scripts/keycloak/clowder-realm-dev.json:/opt/keycloak/data/import/realm.json:ro
- ./scripts/keycloak/clowder-theme/:/opt/keycloak/themes/clowder-theme/:ro
networks:
- clowder2
command:
- start-dev
- --http-relative-path /keycloak
- --import-realm
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB: postgres
KC_DB_URL_HOST: postgres
KC_DB_URL_DATABASE: keycloak_dev
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
ports:
- 8080:8080
depends_on:
- postgres
maildev:
image: maildev/maildev
ports:
- "1080:80"
- "25:25"
# message broker
rabbitmq:
image: rabbitmq:3-management-alpine
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbitmq_management path_prefix "/rabbitmq"
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER:-guest}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS:-guest}
ports:
- "5672:5672"
- "15672:15672"
networks:
- clowder2
volumes:
- rabbitmq:/var/lib/rabbitmq
# ELasticsearch
elasticsearch:
# platform: amd64
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.3
ports:
- 9200:9200
- 9300:9300
environment:
- cluster.name=clowder2
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- http.cors.allow-origin='*'
- http.cors.enabled=true
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
- http.cors.allow-credentials=true
- http.cors.allow-methods=OPTIONS, HEAD, GET, POST, PUT, DELETE
- logger.level=debug
volumes:
- elasticsearch:/usr/share/elasticsearch/data
extractors-heartbeat:
image: "clowder/clowder2-heartbeat:latest"
build:
context: backend
dockerfile: heartbeat.Dockerfile
environment:
- MONGODB_URL=mongodb://mongo:27017
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_USER=${RABBITMQ_USER:-guest}
- RABBITMQ_PASS=${RABBITMQ_PASS:-guest}
networks:
- clowder2
depends_on:
- mongo
- rabbitmq
extractors-messages:
image: "clowder/clowder2-messages:latest"
build:
context: backend
dockerfile: messages.Dockerfile
environment:
- MONGODB_URL=mongodb://mongo:27017
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_USER=${RABBITMQ_USER:-guest}
- RABBITMQ_PASS=${RABBITMQ_PASS:-guest}
networks:
- clowder2
depends_on:
- mongo
- rabbitmq
networks:
clowder2:
name: clowder2
## By default this config uses default local driver,
## For custom volumes replace with volume driver configuration.
volumes:
mongo:
data1:
data2:
data3:
data4:
postgres_data:
rabbitmq:
elasticsearch: