Kaynağa Gözat

updating docker file by adding mongodb and postgresql

avinash.b 1 yıl önce
ebeveyn
işleme
6a409e4a35
1 değiştirilmiş dosya ile 27 ekleme ve 3 silme
  1. 27
    3
      docker-compose.yml

+ 27
- 3
docker-compose.yml Dosyayı Görüntüle

@@ -11,18 +11,42 @@ services:
11 11
       - ${settings_dir}:/opt/bizgaze/wwwroot/settings
12 12
       - ${_files_dir}:/opt/bizgaze/wwwroot/_files
13 13
     environment:
14
-      - appversion=956
14
+      - appversion=953
15
+
15 16
   bizgaze_assets:
16 17
     image: harbor.hireserver.com/${reponame}/assets:latest
17 18
     container_name: bizgaze_assets_${containername}
18 19
     ports:
19 20
       - "${assetsport}:80"
20 21
     environment:
21
-      - assetsversion=955
22
+      - assetsversion=952
23
+
22 24
   bizgaze_automation:
23 25
     image: harbor.hireserver.com/${reponame}/automation:latest
24 26
     container_name: bizgaze_automation_${containername}
25 27
     volumes:
26 28
       - ${automation_appsettings}:/opt/automation/appsettings.json
27 29
     environment:
28
-      - automationversion=955
30
+      - automationversion=952
31
+
32
+  mongodb:
33
+    image: mongo:6.0.6
34
+    container_name: mongodb_${containername}
35
+    ports:
36
+      - "28087:27017"
37
+    environment:
38
+      - MONGO_INITDB_ROOT_USERNAME=admin
39
+      - MONGO_INITDB_ROOT_PASSWORD=Bizgaze@123
40
+    volumes:
41
+      - /var/lib/mongodb:/data/db
42
+
43
+  postgresql:
44
+    image: postgres:14
45
+    container_name: postgresql_${containername}
46
+    ports:
47
+      - "${postgresql_port}:5432"
48
+    environment:
49
+      - POSTGRES_USER=postgres
50
+      - POSTGRES_PASSWORD=Bizgaze@123
51
+    volumes:
52
+      - /var/lib/postgresql/14/bizgaze:/var/lib/postgresql/data

Loading…
İptal
Kaydet