From cce1618117cab5df9bb52452d23e3b3fc17572d0 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Fri, 8 Nov 2024 18:14:35 +0700 Subject: [PATCH] [core] add mongo auth by default --- .env.example | 2 +- docker-compose.yaml | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index f9ac86f9..cb9f3237 100644 --- a/.env.example +++ b/.env.example @@ -172,5 +172,5 @@ WHATSAPP_FILES_FOLDER=/app/.media # # MongoDB Configuration # https://waha.devlike.pro/docs/how-to/storages/#sessions---mongodb -#WHATSAPP_SESSIONS_MONGO_URL=mongodb://mongodb:27017 +#WHATSAPP_SESSIONS_MONGO_URL=mongodb://mongouser:mongopassword@mongodb:27017 # diff --git a/docker-compose.yaml b/docker-compose.yaml index 1da5234e..9965d4c1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -24,7 +24,7 @@ services: # NOTE: Only if you're using MongoDB # https://waha.devlike.pro/docs/how-to/storages/#sessions---mongodb - # Comment this block if you're using MongoDB + # Uncomment this block if you're using MongoDB # mongodb: # image: mongo # container_name: mongodb @@ -32,11 +32,13 @@ services: # - '127.0.0.1:27017:27017/tcp' # volumes: # - mongodb_data:/data/db -# restart: always +# environment: +# - MONGO_INITDB_ROOT_USERNAME=mongouser +# - MONGO_INITDB_ROOT_PASSWORD=mongopassword # NOTE: Only if you're using S3 to save media files # https://waha.devlike.pro/docs/how-to/storages/#media---s3 -# Comment this block if you're using AWS S3 +# Uncomment this block if you're using AWS S3 # minio: # image: quay.io/minio/minio # container_name: minio