-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# docker-compose.yml
services:
rabbit:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 5s
timeout: 3s
retries: 20
httpbin:
image: kennethreitz/httpbin
ports:
- "8080:80"
healthcheck:
test:
[
"CMD-SHELL",
"python3 -c \"import urllib.request,sys; urllib.request.urlopen('http://127.0.0.1:80/status/200', timeout=2); sys.exit(0)\" \
|| python -c \"import urllib.request,sys; urllib.request.urlopen('http://127.0.0.1:80/status/200', timeout=2); sys.exit(0)\""
]
interval: 5s
timeout: 3s
retries: 20
start_period: 15s
dispatcher:
build: .
environment:
RABBIT_URL: amqp://guest:guest@rabbit:5672/%2f
INCOMING_QUEUE: webhook.requests
DISPATCH_QUEUE: webhook.dispatch
DLX: webhook.dlx
DLQ: webhook.failures
PREFETCH: "2"
FORWARDERS: "10"
WORKERS: "100"
DEFAULT_MAX_RETRIES: "5"
HTTP_TIMEOUT_MS: "2000"
depends_on:
rabbit:
condition: service_healthy
httpbin:
condition: service_healthy
restart: on-failure