install_im_server

This commit is contained in:
skiffer-git 2022-11-09 15:52:01 +08:00
parent decef23751
commit 935f80cd8a
2 changed files with 13 additions and 1 deletions

View File

@ -19,7 +19,7 @@ services:
ports:
- 37017:27017
container_name: mongo
command: --wiredTigerCacheSizeGB 1
command: --wiredTigerCacheSizeGB 1 --auth
volumes:
- ${DATA_DIR}/components/mongodb/data/db:/data/db
- ${DATA_DIR}/components/mongodb/data/logs:/data/logs
@ -32,6 +32,9 @@ services:
- MONGO_INITDB_ROOT_USERNAME=${USER}
- MONGO_INITDB_ROOT_PASSWORD=${PASSWORD}
- MONGO_INITDB_DATABASE=openIM
- MONGO_USERNAME=${USER}
- MONGO_PASSWORD=${PASSWORD}
#
restart: always
redis:

9
install_im_server.sh Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
cd script ;
chmod +x *.sh ;
./env_check.sh;
cd .. ;
docker-compose up -d;
cd script ;
./docker_check_service.sh