-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (30 loc) · 903 Bytes
/
docker-compose.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
version: "3.9"
services:
MongoDB:
image: mongo:latest
container_name: MongoDB
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- MongoDB:/Database
ports:
- 27017:27017
restart: unless-stopped
Mongo-express:
image: mongo-express:latest
container_name: Mongo-express
environment:
- ME_CONFIG_MONGODB_SERVER=MongoDB
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
- ME_CONFIG_BASICAUTH_USERNAME=admin
- ME_CONFIG_BASICAUTH_PASSWORD=password
ports:
- 8081:8081
depends_on:
- MongoDB
restart: unless-stopped
volumes:
MongoDB: