File tree Expand file tree Collapse file tree 4 files changed +29
-12
lines changed Expand file tree Collapse file tree 4 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,11 @@ services:
38
38
depends_on :
39
39
users-service :
40
40
condition : service_started
41
+ web-service :
42
+ condition : service_started
41
43
links :
42
44
- users-service
45
+ - web-service
43
46
44
47
45
48
web-service :
Original file line number Diff line number Diff line change 2
2
FROM nginx:latest
3
3
4
4
RUN rm /etc/nginx/conf.d/default.conf
5
- ADD /flask .conf /etc/nginx/conf.d
5
+ ADD /nginx .conf /etc/nginx/conf.d
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ server {
2
+
3
+ listen 80 ;
4
+
5
+ location / {
6
+ proxy_pass http ://users-service:9000 ;
7
+ proxy_http_version 1.1;
8
+ proxy_set_header Upgrade $http_upgrade ;
9
+ proxy_set_header Connection "upgrade" ;
10
+ proxy_set_header Host $host ;
11
+ proxy_set_header X-Real-IP $remote_addr ;
12
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
13
+ }
14
+
15
+ location /users {
16
+ proxy_pass http ://users-service:5000 ;
17
+ proxy_http_version 1.1;
18
+ proxy_set_header Upgrade $http_upgrade ;
19
+ proxy_set_header Connection "upgrade" ;
20
+ proxy_set_header Host $host ;
21
+ proxy_set_header X-Real-IP $remote_addr ;
22
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
23
+ }
24
+
25
+ }
You can’t perform that action at this time.
0 commit comments