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