Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DB Web UI credentials and update environment variables #90

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
### Installation
- Clone the repository to your target server host
- Install docker if not already present
- Set the slack tokens as environment variables using either method below:
- Set the slack tokens and DB Web UI Credentials as environment variables using either method below:
- Linux
- `export SLACK_APP_TOKEN=<app-token>`
- `export SLACK_BOT_TOKEN=<bot-token>`
- `export ME_CONFIG_BASICAUTH_USERNAME=<mongo-express-basicauth-username>`
- `export ME_CONFIG_BASICAUTH_PASSWORD=<mongo-express-basicauth-password>`
- .env File
- Create a file called `.env` alongside the docker-compose.yml file (see `template.env` in the repo)
- Issue one of the following commands:
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ services:
environment:
ME_CONFIG_MONGODB_URL: mongodb://smib-db:27017/
ME_CONFIG_BASICAUTH: true
ME_CONFIG_OPTIONS_READONLY: true

ME_CONFIG_BASICAUTH_USERNAME:
ME_CONFIG_BASICAUTH_PASSWORD:

networks:
- smib-bridge-network
Expand Down
7 changes: 6 additions & 1 deletion template.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Slack Credentials
SLACK_BOT_TOKEN=
SLACK_APP_TOKEN=
SLACK_APP_TOKEN=

# Mongo DB UI (Mongo Express) Auth
ME_CONFIG_BASICAUTH_USERNAME=
ME_CONFIG_BASICAUTH_PASSWORD=