From a3c7d25e4bfe108a578229d1aa9dc021254db610 Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Fri, 30 Oct 2020 19:00:58 +0100 Subject: [PATCH] Add a MongoDB service. --- docker-compose.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 14b23dd7..be696e89 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -160,3 +160,18 @@ services: depends_on: - handshake - handshake-api + + mongo: + image: mongo:4.4.1 + command: --keyFile=/data/mgkey --replSet=skynet + container_name: mongo + restart: unless-stopped + logging: *default-logging + volumes: + - ./docker/data/mongo/db:/data/db + - ./docker/data/mongo/mgkey:/data/mgkey:rw + networks: + shared: + ipv4_address: 10.10.10.70 + ports: + - "27017:27017"