mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
docker: fix db persistent configuration
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user