Skip to content

Commit f8c6123

Browse files
authored
Create docker-compose.yml
1 parent 078e01b commit f8c6123

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docker-compose.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# https://hub.docker.com/_/mongo
2+
version: '3.8'
3+
4+
services:
5+
mongodb:
6+
image: mongo:4.4
7+
restart: unless-stopped
8+
ports:
9+
- 27017:27017
10+
volumes:
11+
- ./data:/data/db
12+
environment:
13+
MONGO_INITDB_ROOT_USERNAME: root
14+
MONGO_INITDB_ROOT_PASSWORD: example
15+
16+
mongo-express:
17+
image: mongo-express
18+
restart: unless-stopped
19+
ports:
20+
- 8081:8081
21+
environment:
22+
ME_CONFIG_MONGODB_ADMINUSERNAME: root
23+
ME_CONFIG_MONGODB_ADMINPASSWORD: example

0 commit comments

Comments
 (0)