-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (70 loc) · 1.58 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.8'
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 3s
retries: 5
producer:
build:
context: .
dockerfile: build/producer.Dockerfile
ports:
- "8085:8085"
environment:
- REDIS_ADDR=redis:6379
depends_on:
redis:
condition: service_healthy
worker:
build:
context: .
dockerfile: build/worker.Dockerfile
ports:
- "8086:8086"
environment:
- REDIS_ADDR=redis:6379
- WORKER_COUNT=5
- WORKER_METRICS_ADDR=:8086
depends_on:
redis:
condition: service_healthy
monitor:
build:
context: .
dockerfile: build/monitor.Dockerfile
ports:
- "8082:8082"
environment:
- REDIS_ADDR=redis:6379
depends_on:
redis:
condition: service_healthy
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./deploy/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- producer
- worker
- monitor
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer
volumes:
- ./deploy/grafana/provisioning:/etc/grafana/provisioning:ro
- ./deploy/grafana/queue.json:/var/lib/grafana/dashboards/queue.json:ro
depends_on:
- prometheus