File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,25 @@ services:
51
51
similarity-service :
52
52
image : quay.io/massbank/massbank3-similarity-service:latest
53
53
restart : always
54
- ports :
55
- - " ${SIMILARITY_SERVICE_PORT}:8080"
54
+ # ports:
55
+ # - "${SIMILARITY_SERVICE_PORT}:8080"
56
56
environment :
57
57
- MSP
58
58
- VERBOSE=${SIMILARITY_SERVICE_VERBOSE}
59
59
volumes :
60
60
- " ${MSP_LOCAL_PATH}${MSP}:${MSP}"
61
+ deploy :
62
+ replicas : 2
63
+
64
+ nginx :
65
+ image : nginx:latest
66
+ restart : always
67
+ ports :
68
+ - " 8082:80"
69
+ volumes :
70
+ - ./nginx.conf:/etc/nginx/nginx.conf:ro
71
+ depends_on :
72
+ - similarity-service
61
73
62
74
export-service :
63
75
image : quay.io/massbank/massbank3-export-service:latest
Original file line number Diff line number Diff line change
1
+ events {}
2
+
3
+ http {
4
+ upstream similarity_service {
5
+ server similarity-service:8080;
6
+ }
7
+
8
+ server {
9
+ listen 80 ;
10
+
11
+ location / {
12
+ proxy_pass http://similarity_service;
13
+ }
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments