瀏覽代碼

added container name as variable

Avinash 1 年之前
父節點
當前提交
108393b0c7
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      docker-compose.yml

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

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

Loading…
取消
儲存