Переглянути джерело

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

Завантаження…
Відмінити
Зберегти