From ba006974a0cdb60c81c6f94d5a24ac27bd55063e Mon Sep 17 00:00:00 2001 From: dyw770 Date: Thu, 5 Sep 2024 23:18:12 +0800 Subject: [PATCH] docker: fix db persistent configuration --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9149c0d..d391bc5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,6 +45,10 @@ services: notesnook-db: image: mongo:7.0.12 + hostname: notesnook-db + volumes: + - ${HOME}/.notesnook/db/data:/data/db + - ${HOME}/.notesnook/db/configdb:/data/configdb networks: - notesnook command: --replSet rs0 --bind_ip_all @@ -58,10 +62,6 @@ services: # it multiple times is no issue. initiate-rs0: image: mongo:7.0.12 - hostname: notesnook-db - volumes: - - ${HOME}/.notesnook/db/data:/data/db - - ${HOME}/.notesnook/db/configdb:/data/configdb networks: - notesnook depends_on: