-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (87 loc) · 1.97 KB
/
docker-compose.yml
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
version: "2.1"
volumes:
grafana:
mythical:
postgres:
services:
mythical-server:
build:
context: ./source
dockerfile: docker/Dockerfile
args:
SERVICE: mythical-beasts-server
ports:
- "4000:4000"
- "80:80"
volumes:
- "mythical:/mythical"
depends_on:
- mythical-database
environment:
- NAMESPACE=production
- LOGS_TARGET=http://loki:3100/loki/api/v1/push
- TRACING_COLLECTOR_HOST=agent
- TRACING_COLLECTOR_PORT=6832
mythical-requester:
build:
context: ./source
dockerfile: docker/Dockerfile
args:
SERVICE: mythical-beasts-requester
depends_on:
- mythical-server
environment:
- NAMESPACE=production
- LOGS_TARGET=http://loki:3100/loki/api/v1/push
- TRACING_COLLECTOR_HOST=agent
- TRACING_COLLECTOR_PORT=6832
prometheus:
build: ./prometheus
ports:
- "9090:9090"
grafana:
image: grafana/grafana
volumes:
- "./grafana/definitions:/var/lib/grafana/dashboards"
- "./grafana/provisioning:/etc/grafana/provisioning"
ports:
- "3000:3000"
environment:
- GF_FEATURE_TOGGLES_ENABLE=tempoSearch
loki:
image: grafana/loki
ports:
- "3100:3100"
mythical-database:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: "mythical"
volumes:
- "postgres:/var/lib/postgresql/data"
ports:
- "5432:5432"
nodeexporter:
image: prom/node-exporter
privileged: true
ports:
- "9100:9100"
tempo:
image: grafana/tempo:1.2.1
ports:
- "3200:3200"
- "4317:4317"
- "55680:55680"
- "55681:55681"
- "14250:14250"
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./tempo/tempo.yaml:/etc/tempo.yaml
agent:
image: grafana/agent:latest
ports:
- "12345:80"
- "6832:6832"
- "55679:55679"
volumes:
- "${PWD}/agent/config.yaml:/etc/agent/agent.yaml"