-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4de14a9
commit 71c4f5e
Showing
5 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"PORT": 3000, | ||
"HOST": "0.0.0.0", | ||
"DB_URL": "postgresql://postgres:postgres@pg-store:5432/postgres", | ||
"REDIS_URL": "redis://redis-channel", | ||
"REDIS_CHANNEL": "test_channel" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
upstream notification { | ||
server rest-notifucation:3000; | ||
} | ||
|
||
upstream helloworld { | ||
server rest-helloworld:3000; | ||
} | ||
|
||
server { | ||
listen 5000; | ||
server_name localhost; | ||
location = / { | ||
proxy_pass http://helloworld; #设定代理服务器的协议和地址 | ||
} | ||
location /api/ { | ||
proxy_pass http://notification/; #设定代理服务器的协议和地址 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters