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: ...@@ -21,7 +21,9 @@ services:
depends_on: depends_on:
- rabbitmq - rabbitmq
environment: environment:
BROKER_URL: &broker_url amqp://waldorf:pass@rabbitmq/waldorf
FLASK_APP: server FLASK_APP: server
FLASK_ENV: development
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget http://localhost:8080/ping || exit 1"] test: ["CMD-SHELL", "wget http://localhost:8080/ping || exit 1"]
ports: ports:
...@@ -33,6 +35,6 @@ services: ...@@ -33,6 +35,6 @@ services:
depends_on: depends_on:
- rabbitmq - rabbitmq
environment: environment:
BROKER_URL: amqp://waldorf:pass@rabbitmq/waldorf BROKER_URL: *broker_url
healthcheck: healthcheck:
test: ["CMD-SHELL", "pgrep python || exit 1"] 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