mongoexpress web auth

This commit is contained in:
voje 2019-04-15 16:43:21 +02:00
parent 1b46ac9c22
commit 24264c4a8b
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ OUTPUT = "db"
OUTDIR = "/home/voje/workdir/test_out" OUTDIR = "/home/voje/workdir/test_out"
DBADDR = "0.0.0.0:27017" # don't use localhost DBADDR = "0.0.0.0:27017" # don't use localhost
MONGOEXPRESS_USER = mxuser
MONGOEXPRESS_PASS = mxuserpassword
DB_ADM_USER = valadmin DB_ADM_USER = valadmin
DB_ADM_PASS = valadminpass DB_ADM_PASS = valadminpass
DB_USR_USER = valuser DB_USR_USER = valuser

View File

@ -19,6 +19,8 @@ services:
ports: ports:
- 8087:8081 - 8087:8081
environment: environment:
ME_CONFIG_BASICAUTH_USERNAME: ${MONGOEXPRESS_USER}
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGOEXPRESS_PASS}
ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_ADM_USER} ME_CONFIG_MONGODB_ADMINUSERNAME: ${DB_ADM_USER}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_ADM_PASS} ME_CONFIG_MONGODB_ADMINPASSWORD: ${DB_ADM_PASS}
ME_CONFIG_MONGODB_SERVER: my-mongo ME_CONFIG_MONGODB_SERVER: my-mongo