Create compose.yaml
This commit is contained in:
parent
3a34e176e6
commit
220f1d44d7
1 changed files with 17 additions and 0 deletions
17
ubuntu/mongo/compose.yaml
Normal file
17
ubuntu/mongo/compose.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
services:
|
||||
mongo:
|
||||
image: "mongo:5.0"
|
||||
container_name: "mongo"
|
||||
hostname: "mongo"
|
||||
restart: always
|
||||
volumes:
|
||||
- mongo:/data/db
|
||||
- mongo_cdb:/data/configdb
|
||||
ports:
|
||||
- 27017:27017
|
||||
network_mode: bridge
|
||||
|
||||
volumes:
|
||||
mongo:
|
||||
mongo_cdb:
|
||||
|
Loading…
Reference in a new issue