From f004dcf0c92e7ae8792f612c080a08f9f0f339f7 Mon Sep 17 00:00:00 2001 From: django Date: Sat, 16 Aug 2025 07:00:42 -0400 Subject: [PATCH] dockercompose file fix --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 06e17af..a8643ee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,7 @@ services: RUST_LOG: "info,tower_http=debug,mongodb=debug" depends_on: - mongodb + # Optional: If you want to enable the no-auth feature for local development # command: cargo run --features "no-auth" @@ -24,6 +25,10 @@ services: - "27017:27017" volumes: - mongodb_data:/data/db + environment: + MONGO_INITDB_ROOT_USERNAME: admin + MONGO_INITDB_ROOT_PASSWORD: password123 + MONGO_INITDB_DATABASE: purenotify # Optional: MongoDB authentication (highly recommended for production) # MONGO_INITDB_ROOT_USERNAME: your_mongo_username # MONGO_INITDB_ROOT_PASSWORD: your_mongo_password