diff --git a/docker-compose.yaml b/docker-compose.yaml index 1581b3eed..e8817acf6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: @@ -112,7 +115,7 @@ services: open_im_server: - image: openim/open_im_server:v2.3.2 + image: openim/open_im_server:v2.3.4 container_name: open_im_server volumes: - ./logs:/Open-IM-Server/logs diff --git a/install_im_server.sh b/install_im_server.sh new file mode 100644 index 000000000..15ef7b75d --- /dev/null +++ b/install_im_server.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +cd script ; +chmod +x *.sh ; +./env_check.sh; +cd .. ; +docker-compose up -d; +echo "upppp...." +cd script ; +./docker_check_service.sh