This repository was archived by the owner on Jun 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
106 lines (98 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
106 lines (98 loc) · 2.04 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
networks:
experiment:
services:
nsqlookupd:
image: nsqio/nsq
hostname: nsqlookupd
ports:
- "4160:4160"
- "4161:4161"
expose:
- 4160
- 4161
command: /nsqlookupd
networks:
- experiment
nsqd:
image: nsqio/nsq
hostname: nsqd
ports:
- "4150:4150"
- "4151:4151"
command: /nsqd -broadcast-address=nsqd --lookupd-tcp-address=nsqlookupd:4160
networks:
- experiment
expose:
- 4150
- 4151
nsqadmin:
image: nsqio/nsq
hostname: nsqadmin
ports:
- "4170:4170"
- "4171:4171"
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161
networks:
- experiment
expose:
- 4171
worker:
build:
context: .
dockerfile: worker/Dockerfile
hostname: worker
environment:
- NSQ_ADDRESS=nsqd:4150
- METRICS_PORT=2112
ports:
- "8081:8081"
- "2112:2112" # Expose metrics port
networks:
- experiment
depends_on:
- nsqd
backend:
build:
context: .
dockerfile: backend/Dockerfile
hostname: backend
environment:
- NSQ_ADDRESS=nsqd:4150
- METRICS_PORT=2113
ports:
- "8082:8082"
- "2113:2113" # Expose metrics port
networks:
- experiment
depends_on:
- nsqd
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus:/etc/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- experiment
depends_on:
- worker
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana/dashboards:/etc/grafana/dashboards
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
networks:
- experiment
depends_on:
- prometheus
volumes:
grafana-storage: {}