From 6679de46b82b90704104ba4c89f9722a24d26bff Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 17 Jan 2022 18:23:56 -0600 Subject: [PATCH] Add docker-compose for included mongodb --- .gitignore | 1 + docker-compose.yml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index 76a4357..f210c4a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ config.json .DS_Store update.sh .eslintrc.json +data/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b3bf962 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +# Use root/example as user/password credentials +version: '3.1' +services: + mongo: + image: mongo:4.4 + restart: always + ports: + - 27017:27017 + volumes: + - ./data:/data/db + + awesomescibo: + image: abheekd/awesomescibo:latest + restart: unless-stopped + environment: + MONGO_URI: "mongodb://mongo:27017/AWESOME?authSource=AWESOME&w=1" + TOKEN: "TOKEN"