mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 03:12:19 +08:00
fix: remove docker compose mysql
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
defe1ee7a1
commit
88491092d1
@ -11,21 +11,6 @@ networks:
|
|||||||
gateway: '${DOCKER_BRIDGE_GATEWAY}'
|
gateway: '${DOCKER_BRIDGE_GATEWAY}'
|
||||||
|
|
||||||
services:
|
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:
|
mongodb:
|
||||||
image: mongo:6.0.2
|
image: mongo:6.0.2
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@ -50,7 +50,7 @@ for template in "${!TEMPLATES[@]}"; do
|
|||||||
if [[ -f "${output_file}" ]]; then
|
if [[ -f "${output_file}" ]]; then
|
||||||
echo -n "File ${output_file} already exists. Overwrite? (Y/N): "
|
echo -n "File ${output_file} already exists. Overwrite? (Y/N): "
|
||||||
read -r -n 1 REPLY
|
read -r -n 1 REPLY
|
||||||
echo # 新增一行,以便在用户输入后换行
|
echo # Adds a line to wrap after user input
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
openim::log::info "Overwriting ${output_file}. Previous configuration will be lost."
|
openim::log::info "Overwriting ${output_file}. Previous configuration will be lost."
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user