-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
71 lines (67 loc) · 1.58 KB
/
docker-compose.yaml
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
name: mercure-hub
services:
hub:
build:
context: .
dockerfile: Dockerfile
environment:
MERCURE_LOG_LEVEL: "${MERCURE_LOG_LEVEL:-debug}"
MERCURE_METRICS: "${MERCURE_METRICS:-true}"
MERCURE_WEB_UI: "${MERCURE_WEB_UI:-true}"
MERCURE_SUBSCRIPTIONS_API: "${MERCURE_SUBSCRIPTIONS_API:-true}"
MERCURE_LISTEN_ADDRESS: "${MERCURE_LISTEN_ADDRESS:-0.0.0.0:8000}"
env_file:
- ./.env
volumes:
- .:/app
ports:
- host_ip: "127.0.0.1"
protocol: tcp
published: 8000
target: 8000
app_protocol: http
name: "Mercure Hub HTTP"
expose:
- "8000"
redis:
image: redis:latest
expose:
- "6379"
ports:
- host_ip: "127.0.0.1"
protocol: tcp
published: 6379
target: 6379
name: "Redis TCP"
redis-exporter:
image: "oliver006/redis_exporter:latest"
environment:
REDIS_ADDR: "redis://redis:6379"
expose:
- 9121
prometheus:
image: prom/prometheus:latest
volumes:
- type: volume
source: prometheus
target: /prometheus
- type: bind
source: ./prometheus.yaml
target: /etc/prometheus/prometheus.yml
read_only: true
consistency: cached
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--log.level=warn"
expose:
- 9090
ports:
- host_ip: "127.0.0.1"
protocol: tcp
published: 9090
target: 9090
app_protocol: http
name: "Prometheus HTTP"
volumes:
prometheus:
name: mercure-prometheus