dockercompose file fix
This commit is contained in:
@@ -15,6 +15,7 @@ services:
|
|||||||
RUST_LOG: "info,tower_http=debug,mongodb=debug"
|
RUST_LOG: "info,tower_http=debug,mongodb=debug"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
|
|
||||||
# Optional: If you want to enable the no-auth feature for local development
|
# Optional: If you want to enable the no-auth feature for local development
|
||||||
# command: cargo run --features "no-auth"
|
# command: cargo run --features "no-auth"
|
||||||
|
|
||||||
@@ -24,6 +25,10 @@ services:
|
|||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- mongodb_data:/data/db
|
- 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)
|
# Optional: MongoDB authentication (highly recommended for production)
|
||||||
# MONGO_INITDB_ROOT_USERNAME: your_mongo_username
|
# MONGO_INITDB_ROOT_USERNAME: your_mongo_username
|
||||||
# MONGO_INITDB_ROOT_PASSWORD: your_mongo_password
|
# MONGO_INITDB_ROOT_PASSWORD: your_mongo_password
|
||||||
|
|||||||
Reference in New Issue
Block a user