Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing rabbit connection timeout #1181

Merged
merged 6 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env_circleci
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RABBITMQ_DEFAULT_USER=rabbit-username
RABBITMQ_DEFAULT_PASS=rabbit-password-you-should-change
RABBITMQ_PORT=5672
RABBITMQ_HOST=rabbit
WORKER_CONNECTION_TIMEOUT=100000000 # milliseconds

FLOWER_BASIC_AUTH=root:password-you-should-change

Expand Down
1 change: 1 addition & 0 deletions .env_sample
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RABBITMQ_DEFAULT_USER=rabbit-username
RABBITMQ_DEFAULT_PASS=rabbit-password-you-should-change
RABBITMQ_MANAGEMENT_PORT=15672
RABBITMQ_PORT=5672
WORKER_CONNECTION_TIMEOUT=100000000 # milliseconds

FLOWER_PUBLIC_PORT=5555

Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.rabbitmq
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM rabbitmq:management
ARG WORKER_CONNECTION_TIMEOUT
RUN echo "consumer_timeout = $WORKER_CONNECTION_TIMEOUT" >> /etc/rabbitmq/conf.d/10-defaults.conf
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ services:
# Rabbitmq & Flower monitoring tool
#-----------------------------------------------
rabbit:
image: rabbitmq:management
build:
context: .
dockerfile: Dockerfile.rabbitmq
args:
- WORKER_CONNECTION_TIMEOUT=${WORKER_CONNECTION_TIMEOUT}
# setting hostname here makes data persist properly between
# containers being destroyed..!
hostname: rabbit
Expand Down