浏览代码

added container name as variable

Avinash 1年前
父节点
当前提交
108393b0c7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      docker-compose.yml

+ 2
- 2
docker-compose.yml 查看文件

3
 services:
3
 services:
4
   bizgaze_application:
4
   bizgaze_application:
5
     image: harbor.hireserver.com/bizgaze/application:latest
5
     image: harbor.hireserver.com/bizgaze/application:latest
6
-    container_name: bizgaze_application
6
+    container_name: bizgaze_application_${containername}
7
     ports:
7
     ports:
8
       - "${hostport}:80"
8
       - "${hostport}:80"
9
     volumes:
9
     volumes:
11
       - ${settings_dir}:/opt/bizgaze/wwwroot/settings
11
       - ${settings_dir}:/opt/bizgaze/wwwroot/settings
12
   bizgaze_automation:
12
   bizgaze_automation:
13
     image: harbor.hireserver.com/bizgaze/automation:latest
13
     image: harbor.hireserver.com/bizgaze/automation:latest
14
-    container_name: bizgaze_automation
14
+    container_name: bizgaze_automation_${containername}
15
     volumes:
15
     volumes:
16
       - ${automation_appsettings}:/opt/automation/appsettings.json
16
       - ${automation_appsettings}:/opt/automation/appsettings.json

正在加载...
取消
保存