From 220f1d44d7c4fe2a62fcfe39032dc2587b993fcd Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Fri, 12 Jul 2024 14:46:32 +0200 Subject: [PATCH] Create compose.yaml --- ubuntu/mongo/compose.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ubuntu/mongo/compose.yaml diff --git a/ubuntu/mongo/compose.yaml b/ubuntu/mongo/compose.yaml new file mode 100644 index 0000000..c37573b --- /dev/null +++ b/ubuntu/mongo/compose.yaml @@ -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: +