From 88491092d10f51e204d17518c21d0a5681942a17 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw)" <3293172751nss@gmail.com> Date: Tue, 5 Dec 2023 21:06:50 +0800 Subject: [PATCH] fix: remove docker compose mysql Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com> --- docker-compose.yml | 15 --------------- scripts/init-config.sh | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1a6626add..2592c51c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,21 +11,6 @@ networks: gateway: '${DOCKER_BRIDGE_GATEWAY}' services: - mysql: - image: mysql:5.7 - ports: - - "${MYSQL_PORT}:3306" - container_name: mysql - volumes: - - "${DATA_DIR}/components/mysql/data:/var/lib/mysql" - - "/etc/localtime:/etc/localtime" - environment: - MYSQL_ROOT_PASSWORD: "${MYSQL_PASSWORD}" - restart: always - networks: - server: - ipv4_address: ${MYSQL_NETWORK_ADDRESS} - mongodb: image: mongo:6.0.2 ports: diff --git a/scripts/init-config.sh b/scripts/init-config.sh index 6b9cedc5e..f20fc7e73 100755 --- a/scripts/init-config.sh +++ b/scripts/init-config.sh @@ -50,7 +50,7 @@ for template in "${!TEMPLATES[@]}"; do if [[ -f "${output_file}" ]]; then echo -n "File ${output_file} already exists. Overwrite? (Y/N): " read -r -n 1 REPLY - echo # 新增一行,以便在用户输入后换行 + echo # Adds a line to wrap after user input if [[ $REPLY =~ ^[Yy]$ ]]; then openim::log::info "Overwriting ${output_file}. Previous configuration will be lost." else