Merge pull request #3058 from GautierDele/master

 Add mongo crendentials to environment
This commit is contained in:
Shao Yu-Lung (Allen) 2021-09-22 17:25:33 +08:00 committed by GitHub
commit 1008cdcee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -614,6 +614,8 @@ RETHINKDB_PORT=8090
### MONGODB ###############################################
MONGODB_PORT=27017
MONGO_USERNAME=root
MONGO_PASSWORD=example
### CADDY #################################################

View File

@ -658,6 +658,9 @@ services:
build: ./mongo
ports:
- "${MONGODB_PORT}:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- ${DATA_PATH_HOST}/mongo:/data/db
- ${DATA_PATH_HOST}/mongo_config:/data/configdb

View File

@ -789,7 +789,7 @@ RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
ARG INSTALL_SMB=false
RUN if [ ${INSTALL_SMB} = true ]; then \
apt-get install apt-get install -yqq smbclient libsmbclient-dev coreutils && \
apt-get install -yqq smbclient libsmbclient-dev coreutils && \
pecl install smbclient && \
docker-php-ext-enable smbclient \
;fi