mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-08-04 08:59:38 -05:00
Set up mongo-express for administration
This commit is contained in:
parent
e62366b881
commit
840bacedc4
14
compose.yml
14
compose.yml
|
|
@ -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:
|
||||
|
|
|
|||
3
environment/mongo-express.env
Normal file
3
environment/mongo-express.env
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ME_CONFIG_MONGODB_SERVER=mongodb
|
||||
ME_CONFIG_MONGODB_PORT=27017
|
||||
ME_CONFIG_BASICAUTH_USERNAME=mongo_express_pretendo
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user