From f0e723e95a4c45330a74ac645be914f5557bbf20 Mon Sep 17 00:00:00 2001 From: Jixiang <75556346+Jixiangup@users.noreply.github.com> Date: Tue, 23 Apr 2024 09:55:20 +0800 Subject: [PATCH] [issue_1160][docker] Fixed name error when using docker-compose (#1168) Use docker-compose syntax to explicitly specify the name of the container after it is started to avoid container name format errors when docker-compose is repeatedly executed. check it #1160 --- docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 686a6701ec..fe92a43813 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,10 @@ services: TZ: Asia/Shanghai ports: - 3306:3306 + container_name: taier-db taier-zk: image: zookeeper:3.4.9 + container_name: taier-zk taier: image: dtopensource/taier:latest environment: @@ -21,4 +23,5 @@ services: DB_PASSWORD: 123456 TZ: Asia/Shanghai ports: - - 8090:8090 \ No newline at end of file + - 8090:8090 + container_name: taier \ No newline at end of file