-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·39 lines (34 loc) · 929 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·39 lines (34 loc) · 929 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
version: '3.8'
services:
mongo-dev:
image: mongo:latest
container_name: mongo_dev
networks:
- REDEMONGO
volumes:
- ./db_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
labels:
- "com.docker.compose.project=mongo-project"
- "com.docker.compose.service=mongo-dev"
- "com.docker.volume.name=mongo_dev"
mongo-ui:
image: mongo-express:latest
container_name: mongo_ui
networks:
- REDEMONGO
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_URL: mongodb://root:password@mongo_dev:27017/
labels:
- "com.docker.compose.project=mongo-project"
- "com.docker.compose.service=mongo-ui"
- "com.docker.volume.name=mongo_ui"
networks:
REDEMONGO:
driver: bridge