forked from linnovate/dfa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dz2_b.diff
97 lines (91 loc) · 2.13 KB
/
dz2_b.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
diff --git a/.env b/.env
index 3025232..0d5b987 100644
--- a/.env
+++ b/.env
@@ -1,7 +1,7 @@
-### Used in (canton)
+### Used in (canton) + changed for dz2
CANTON_DOMAIN_PORT=2000
-CANTON_DOMAIN_URL=http://cantonA:2000
+CANTON_DOMAIN_URL=http://172.18.0.69:2000
### Used in (canton, navigator, json_api)
LEDGER_PORT_A=1000
@@ -23,6 +23,14 @@ JSON_API_URL_B=http://jsonApiB:4001
REACT_PORT_A=5500
REACT_PORT_B=5501
-### Used in (nginx)
-NGINX_PORT_A=5000
-NGINX_PORT_B=5001
\ No newline at end of file
+### Used in (nginx) + changed for dz2
+NGINX_PORT_A=8081
+NGINX_PORT_B=8082
+
+
+### only for dz2
+CONTAINER_NAME_WEB=dfa2
+COMPOSE_PROJECT_NAME=dfa2
+VIRTUAL_HOST_URL=dfa2-my.gcp-dz2.linnovate.net, ui.dfa2-my.gcp-dz2.linnovate.net, nav.dfa2-my.gcp-dz2.linnovate.net
+
diff --git a/docker-compose-b.yml b/docker-compose-b.yml
index 7cb7ea5..7bfc73c 100644
--- a/docker-compose-b.yml
+++ b/docker-compose-b.yml
@@ -87,7 +87,11 @@ services:
links:
- wordpressB
- jsonApiB
-
+ environment:
+ VIRTUAL_HOST: "${VIRTUAL_HOST_URL}"
+ LETSENCRYPT_HOST: "${VIRTUAL_HOST_URL}"
+ LETSENCRYPT_EMAIL: "${LETSENCRYPT_EMAIL}"
+
wordpressB:
image: wordpress:php7.4-fpm-alpine
environment:
@@ -109,3 +113,9 @@ services:
- MYSQL_DATABASE=wordpress
volumes:
- ./data/mysqlB:/var/lib/mysql
+
+### only for dz2
+networks:
+ default:
+ external:
+ name: nginx-proxy
diff --git a/nginx_b.conf b/nginx_b.conf
index 29f9e56..348505f 100644
--- a/nginx_b.conf
+++ b/nginx_b.conf
@@ -5,7 +5,8 @@
server {
listen 80;
- server_name localhost;
+ # server_name localhost;
+ server_name dfa2.gcp-dz2.linnovate.net;
root /var/www/html;
index index.php;
@@ -31,4 +32,21 @@ server {
location /v1 {
proxy_pass http://jsonApiB:4001/v1;
}
+
+}
+
+#server {
+# server_name ui.dfa2.gcp-dz2.linnovate.net;
+# listen 80;
+# location / {
+# proxy_pass http://reactB:5501;
+# }
+#}
+
+server {
+ server_name nav.dfa2.gcp-dz2.linnovate.net;
+ listen 80;
+ location / {
+ proxy_pass http://navigatorB:4501;
+ }
}