Set up mongo-express for administration

This commit is contained in:
Matthew Lopez 2023-12-20 11:41:01 -05:00
parent e62366b881
commit 840bacedc4
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E
3 changed files with 21 additions and 0 deletions

View File

@ -69,6 +69,20 @@ services:
internal:
command: --config "/etc/mongod.conf" --replSet rs
mongo-express:
image: mongo-express:latest
depends_on:
- coredns
ports:
# Web interface
- 127.0.0.1:8090:8081
env_file:
- ./environment/mongo-express.env
- ./environment/mongo-express.local.env
dns: 172.20.0.2
networks:
internal:
minio:
image: minio/minio:latest
depends_on:

View File

@ -0,0 +1,3 @@
ME_CONFIG_MONGODB_SERVER=mongodb
ME_CONFIG_MONGODB_PORT=27017
ME_CONFIG_BASICAUTH_USERNAME=mongo_express_pretendo

View File

@ -24,6 +24,10 @@ minio_secret_key=$(openssl rand -base64 32)
echo "PN_ACT_CONFIG_S3_ACCESS_SECRET=$minio_secret_key" >>./account.local.env
echo "MINIO_ROOT_PASSWORD=$minio_secret_key" >>./minio.local.env
# Generate a password for mongo-express
mongo_express_password=$(openssl rand -base64 32)
echo "ME_CONFIG_BASICAUTH_PASSWORD=$mongo_express_password" >>./mongo-express.local.env
# Get the Wii U IP address
printf "Enter your Wii U's IP address: "
read -r wiiu_ip