use port 7004 since mysql is on 7003 w/ burnettk
This commit is contained in:
parent
22c44aef8f
commit
f4aa9e465c
|
@ -9,7 +9,7 @@ set -o errtrace -o errexit -o nounset -o pipefail
|
||||||
|
|
||||||
port="${CONNECTOR_PROXY_STATUS_IM_PORT:-}"
|
port="${CONNECTOR_PROXY_STATUS_IM_PORT:-}"
|
||||||
if [[ -z "$port" ]]; then
|
if [[ -z "$port" ]]; then
|
||||||
port=7003
|
port=7004
|
||||||
fi
|
fi
|
||||||
|
|
||||||
workers=3
|
workers=3
|
||||||
|
|
|
@ -14,7 +14,7 @@ fi
|
||||||
|
|
||||||
echo "waiting for backend to come up..."
|
echo "waiting for backend to come up..."
|
||||||
attempts=0
|
attempts=0
|
||||||
while [[ "$(curl -s -o /dev/null -w '%{http_code}' "http://localhost:7003/v1.0/status")" != "200" ]]; do
|
while [[ "$(curl -s -o /dev/null -w '%{http_code}' "http://localhost:7004/v1.0/status")" != "200" ]]; do
|
||||||
if [[ "$attempts" -gt "$max_attempts" ]]; then
|
if [[ "$attempts" -gt "$max_attempts" ]]; then
|
||||||
>&2 echo "ERROR: Server not up after $max_attempts attempts. There is probably a problem"
|
>&2 echo "ERROR: Server not up after $max_attempts attempts. There is probably a problem"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -11,10 +11,10 @@ services:
|
||||||
- FLASK_DEBUG=0
|
- FLASK_DEBUG=0
|
||||||
- FLASK_SESSION_SECRET_KEY=${FLASK_SESSION_SECRET_KEY:-super_secret_key}
|
- FLASK_SESSION_SECRET_KEY=${FLASK_SESSION_SECRET_KEY:-super_secret_key}
|
||||||
ports:
|
ports:
|
||||||
- "7003:7003"
|
- "7004:7004"
|
||||||
network_mode: host
|
network_mode: host
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: curl localhost:7003/liveness --fail
|
test: curl localhost:7004/liveness --fail
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
Loading…
Reference in New Issue