Przeglądaj źródła

update docker file

avinash.b 1 rok temu
rodzic
commit
4e960b955f
1 zmienionych plików z 26 dodań i 22 usunięć
  1. 26
    22
      docker-compose.yml

+ 26
- 22
docker-compose.yml Wyświetl plik

@@ -1,6 +1,28 @@
1 1
 version: '3.8'
2 2
 
3 3
 services:
4
+  mongodb:
5
+    image: mongo:6.0.6
6
+    container_name: mongodb_${containername}
7
+    ports:
8
+      - "28087:27017"
9
+    environment:
10
+      - MONGO_INITDB_ROOT_USERNAME=admin
11
+      - MONGO_INITDB_ROOT_PASSWORD=Bizgaze@123
12
+    volumes:
13
+      - /var/lib/mongodb:/data/db
14
+
15
+  postgresql:
16
+    image: postgres:14
17
+    container_name: postgresql_${containername}
18
+    ports:
19
+      - "2424:5432"
20
+    environment:
21
+      - POSTGRES_USER=postgres
22
+      - POSTGRES_PASSWORD=Bizgaze@123
23
+    volumes:
24
+      - /var/lib/postgresql/14/bizgaze:/var/lib/postgresql/data
25
+
4 26
   bizgaze_application:
5 27
     image: harbor.hireserver.com/${reponame}/application:latest
6 28
     container_name: bizgaze_application_${containername}
@@ -12,6 +34,10 @@ services:
12 34
       - ${_files_dir}:/opt/bizgaze/wwwroot/_files
13 35
     environment:
14 36
       - appversion=956
37
+      - ConnectionStrings__common=server=postgresql_${containername};port=2424;Database=bizgaze_common_demo_0905;User id=postgres;Password=Bizgaze@123;MaxPoolSize=5000;Connection Lifetime=300
38
+      - ConnectionStrings__common_nsdb=bizgaze_common_demo_0905
39
+      - ConnectionStrings__nsdb_remoteconnection=mongodb://admin:Bizgaze%40123@mongodb_${containername}:28087/authSource={{mongo_db}}&ssl=false?authSource=admin&readPreference=primary&directConnection=true&ssl=false
40
+      - ConnectionStrings__postgres=server=localhost;port=5432;Database=postgres;User id=postgres;Password=Bizgaze@123
15 41
 
16 42
   bizgaze_assets:
17 43
     image: harbor.hireserver.com/${reponame}/assets:latest
@@ -28,25 +54,3 @@ services:
28 54
       - ${automation_appsettings}:/opt/automation/appsettings.json
29 55
     environment:
30 56
       - automationversion=955
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
-      - "2424:5432"
48
-    environment:
49
-      - POSTGRES_USER=postgres
50
-      - POSTGRES_PASSWORD=Bizgaze@123
51
-    volumes:
52
-      - /var/lib/postgresql/14/bizgaze:/var/lib/postgresql/data

Ładowanie…
Anuluj
Zapisz