-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
43 lines (42 loc) · 1.17 KB
/
compose.yaml
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
services:
mongo:
image: mongo:8.0.3
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
ports:
- "27017:27017"
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'host.docker.internal:27017'}]}) }" | mongosh --port 27017 --quiet
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30
volumes:
- mongo-config-data:/data/configdb
- mongo-db-data:/data/db
mongo-express:
image: mongo-express
ports:
- "9500:9500"
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/
PORT: 9500
minio:
image: minio/minio:RELEASE.2024-01-18T22-51-28Z
command: server --address ":9000" --console-address ":9001" /data
environment:
MINIO_ROOT_USER: nx-cloud-ce
MINIO_ROOT_PASSWORD: nx-cloud-ce
MINIO_SERVER_URL: "http://localhost:9000"
MINIO_STORAGE_USE_HTTPS: "false"
volumes:
- minio-data:/data
ports:
- "9000:9000"
- "9001:9001"
volumes:
mongo-config-data:
mongo-db-data:
minio-data: