From 8379652ad59d800ee21883f3ab4b77336caa4dac Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Wed, 9 Nov 2022 15:49:11 +0800 Subject: [PATCH] config --- docker-compose.yaml | 7 +++++-- install_im_server.sh | 10 ++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 install_im_server.sh 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