Skip to content

Commit

Permalink
provide basic auth creds
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Nov 5, 2024
1 parent 019eaca commit 3ce4af3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ services:
- ME_CONFIG_MONGODB_URL=mongodb://mongo1:27017,mongo2:27017,mongo3:27017/?replicaSet=myReplicaSet
- ME_CONFIG_BASICAUTH_USERNAME=admin
- ME_CONFIG_BASICAUTH_PASSWORD=pass
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
restart: unless-stopped

elasticsearch:
Expand Down
3 changes: 3 additions & 0 deletions boot-mongodb-elasticsearch/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ services:
# - ME_CONFIG_MONGODB_ADMINUSERNAME=admin
# - ME_CONFIG_MONGODB_ADMINPASSWORD=passcode
- ME_CONFIG_MONGODB_SERVER=mongodb
- ME_CONFIG_BASICAUTH_USERNAME=admin
- ME_CONFIG_BASICAUTH_PASSWORD=pass
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
restart: unless-stopped

elasticsearch:
Expand Down

0 comments on commit 3ce4af3

Please sign in to comment.