mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
docker: Add db persistence configuration and modify the value of the S3_INTERNAL_SERVICE_URL environment variable
This commit is contained in:
@@ -58,6 +58,10 @@ 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:
|
||||
@@ -146,7 +150,7 @@ services:
|
||||
<<: *server-discovery
|
||||
MONGODB_CONNECTION_STRING: mongodb://notesnook-db:27017/?replSet=rs0
|
||||
MONGODB_DATABASE_NAME: notesnook
|
||||
S3_INTERNAL_SERVICE_URL: "${S3_SERVICE_URL:-http://notesnook-s3:9000}"
|
||||
S3_INTERNAL_SERVICE_URL: "http://notesnook-s3:9000"
|
||||
S3_INTERNAL_BUCKET_NAME: "attachments"
|
||||
S3_ACCESS_KEY_ID: "${MINIO_ROOT_USER:-minioadmin}"
|
||||
S3_ACCESS_KEY: "${MINIO_ROOT_PASSWORD:-minioadmin}"
|
||||
|
||||
Reference in New Issue
Block a user