Create compose.yaml

This commit is contained in:
David Rotermund 2024-07-12 14:46:32 +02:00 committed by GitHub
parent 3a34e176e6
commit 220f1d44d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
ubuntu/mongo/compose.yaml Normal file
View 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: