open-im-server/install_im_compose.sh
kubbot bc6e0e8f01 fix: script v3.0
Signed-off-by: kubbot <3293172751ysy@gmail.com>
2023-07-14 21:39:30 +08:00

22 lines
331 B
Bash
Executable File

#!/usr/bin/env bash
internet_ip=`curl ifconfig.me -s`
echo $internet_ip
source .env
echo $MINIO_ENDPOINT
if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then
sed -i "s/127.0.0.1/${internet_ip}/" .env
fi
cd scripts ;
chmod +x *.sh ;
./init_pwd.sh
./env_check.sh;
cd .. ;
docker-compose -f im-compose.yaml up -d
docker ps