Integration test two apps
Use localhost for app_with_roles and 127.0.0.1 for app. Confirm we can deploy both and the respond to requests. Ensure the proxy is removed once both have been removed.
This commit is contained in:
@@ -23,7 +23,8 @@ asset_path: /usr/share/nginx/html/versions
|
||||
deploy_timeout: 2
|
||||
drain_timeout: 2
|
||||
readiness_delay: 0
|
||||
|
||||
proxy:
|
||||
host: 127.0.0.1
|
||||
registry:
|
||||
server: registry:4443
|
||||
username: root
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
service: app
|
||||
image: app
|
||||
service: app_with_roles
|
||||
image: app_with_roles
|
||||
servers:
|
||||
web:
|
||||
hosts:
|
||||
@@ -14,6 +14,7 @@ drain_timeout: 2
|
||||
readiness_delay: 0
|
||||
|
||||
proxy:
|
||||
host: localhost
|
||||
healthcheck:
|
||||
interval: 1
|
||||
timeout: 1
|
||||
|
||||
@@ -8,6 +8,8 @@ server {
|
||||
|
||||
location / {
|
||||
proxy_pass http://loadbalancer;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
proxy_connect_timeout 10;
|
||||
proxy_send_timeout 10;
|
||||
proxy_read_timeout 10;
|
||||
|
||||
Reference in New Issue
Block a user