From c703f3a544d327f73beab0ba55462dc35b68e4cc Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 13 Dec 2024 17:16:25 +0800 Subject: [PATCH] =?UTF-8?q?build:=E4=B8=BA=20MySQL=20=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 MySQL 容器中添加 /data/run.sh 脚本作为启动命令 - 该修改使容器在启动时执行自定义脚本,可能包含初始化数据库或其他操作 --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 7a91451..02e0f8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,5 +13,6 @@ services: - /usr/lib64/mysql:/usr/lib64/mysql network_mode: "host" restart: unless-stopped + command: /data/run.sh environment: TZ: Asia/Shanghai