Skip to content
Snippets Groups Projects
Commit 8efa1fff authored by nimrod's avatar nimrod
Browse files

Fix issue with hanging requests to Flask.

The Flask application didn't have the BROKER_URL environment variable
set so connecting to the broker failed and dispatching jobs hanged.
parent 9351a69e
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@ services:
depends_on:
- rabbitmq
environment:
BROKER_URL: &broker_url amqp://waldorf:pass@rabbitmq/waldorf
FLASK_APP: server
FLASK_ENV: development
healthcheck:
test: ["CMD-SHELL", "wget http://localhost:8080/ping || exit 1"]
ports:
......@@ -33,6 +35,6 @@ services:
depends_on:
- rabbitmq
environment:
BROKER_URL: amqp://waldorf:pass@rabbitmq/waldorf
BROKER_URL: *broker_url
healthcheck:
test: ["CMD-SHELL", "pgrep python || exit 1"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment