Skip to content

Commit

Permalink
fix mongo-dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jan 15, 2025
1 parent d6452b0 commit f30e530
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export MONGO_PASSWORD = test‍

export DASHBOARD_MONGO_USERNAME = username
export DASHBOARD_MONGO_PASSWORD = password
export DASHBOARD_MONGO_MONGODB_URL = mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongodb:27017

export PROXY_IMAGE = ghcr.io/tarhche/proxy:latest

Expand Down
7 changes: 5 additions & 2 deletions compose.mongodb_dashboard.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
mongodb_dashboard:
image: mongo-express
image: mongo-express:1-20-alpine3.19
networks:
- mongodb
- mongodb_dashboard
Expand All @@ -17,9 +17,12 @@ services:
cpus: '0.20'
memory: 150M
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_BASICAUTH_USERNAME: ${DASHBOARD_MONGO_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${DASHBOARD_MONGO_PASSWORD}
ME_CONFIG_MONGODB_URL: ${DASHBOARD_MONGO_MONGODB_URL}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USERNAME}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_PASSWORD}

networks:
mongodb_dashboard:
Expand Down
2 changes: 2 additions & 0 deletions resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ resource "aws_lb_target_group" "http" {
}

# can't be imported, that's why the below lines are commented
# - if it's the first time you wrap infrastructure, uncomment the below code
# - if it's not first time and the target group is there, you need to connect target group to your EC2
# resource "aws_lb_target_group_attachment" "backend_http" {
# target_group_arn = aws_lb_target_group.http.arn
# target_id = aws_instance.backend.id
Expand Down

0 comments on commit f30e530

Please sign in to comment.