-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 857 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 857 Bytes
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
services:
mongo:
image: mongo:5.0.14
restart: "no"
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: cu
volumes:
- ./mongo_data:/data/db
- ./mongo_init_scripts:/docker-entrypoint-initdb.d
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet
interval: 5s
timeout: 5s
retries: 5
start_period: 40s
mongo-express:
image: mongo-express:1.0.0
restart: "no"
depends_on:
mongo:
condition: service_healthy
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/
ME_CONFIG_BASICAUTH_USERNAME: ""
ME_CONFIG_BASICAUTH_PASSWORD: ""
healthcheck:
test: "wget -O - 127.0.0.1:8081"
interval: 5s
timeout: 5s
retries: 5
start_period: 5s