From d6994606fc451f482fc490a60d965777cc12169b Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 11 Dec 2023 10:00:56 +0100 Subject: [PATCH] add docker-compose-dev --- README.md | 2 +- docker-compose-dev.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 docker-compose-dev.yml diff --git a/README.md b/README.md index 4f7960b..4e554b8 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ In order to run the docker image, first you must have a MongoDB instance running following command: ```console -docker run --name mongodb -d mongo + docker run -d -p 27017:27017 --hostname mongo --name mongo mongo:6.0.12 ``` ### Build your own Docker image diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml new file mode 100644 index 0000000..afad40c --- /dev/null +++ b/docker-compose-dev.yml @@ -0,0 +1,7 @@ +version: "3" + +services: + mongo: + image: mongo:6.0.12 + ports: + - "27017:27017"