File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ defaults
2525 option tcplog
2626
2727 timeout connect 5s
28- timeout client 30s
29- timeout server 30s
28+ # must be kept bigger than rabbitmq heartbeat (default 60) https://www.rabbitmq.com/docs/heartbeats
29+ timeout client 120s
30+ timeout server 120s
3031
3132frontend rabbit
3233 bind *:{{ RABBIT_PORT }}
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ services:
2424 mode: host
2525 {% endif %}
2626 {% if OPS_TRAEFIK_EXPOSE_RABBITMQ |lower == "true" %}
27- - target: 5672
28- published: 5672
27+ - target: ${RABBIT_PORT}
28+ published: ${RABBIT_PORT}
2929 mode: host
3030 {% endif %}
3131 {% if OPS_TRAEFIK_EXPOSE_REDIS |lower == "true" %}
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ TRACING_OPENTELEMETRY_COLLECTOR_PORT=${TRACING_OPENTELEMETRY_COLLECTOR_PORT}
4646OPS_TRAEFIK_ACCESSLOG_ENABLED = ${ OPS_TRAEFIK_ACCESSLOG_ENABLED }
4747OPS_TRAEFIK_REPLICAS = ${ OPS_TRAEFIK_REPLICAS }
4848
49+ RABBIT_PORT = ${ RABBIT_PORT }
50+
4951# ############### TRAEFIK OPTIONS
5052# Attention: Traefik normalizes the environment variable key-value pairs by lowercasing them.
5153# Core Configuration
@@ -89,7 +91,7 @@ TRAEFIK_PING_ENTRYPOINT=ping
8991TRAEFIK_PING = true
9092TRAEFIK_ENTRYPOINTS_METRICS_ADDRESS = :8082
9193TRAEFIK_ENTRYPOINTS_POSTGRES_ADDRESS = :5432
92- TRAEFIK_ENTRYPOINTS_RABBITMQ_ADDRESS = :5672
94+ TRAEFIK_ENTRYPOINTS_RABBITMQ_ADDRESS = :${ RABBIT_PORT }
9395TRAEFIK_ENTRYPOINTS_REDIS_ADDRESS = :${ REDIS_EXTERNAL_PORT }
9496# Providers
9597TRAEFIK_PROVIDERS_SWARM_ENDPOINT = unix:///var/run/docker.sock
You can’t perform that action at this time.
0 commit comments