-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (50 loc) · 1.18 KB
/
compose.yaml
File metadata and controls
53 lines (50 loc) · 1.18 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
services:
#Prometheus
prometheus:
image: prom/prometheus
container_name: my-prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
## Tempo
tempo:
image: grafana/tempo
container_name: my-tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./docker/tempo/tempo.yml:/etc/tempo.yaml:ro
- ./docker/tempo/tempo-data:/tmp/tempo
ports:
- "3200:3200" # Tempo
- "9411:9411" # zipkin
# Loki
loki:
image: grafana/loki:main
container_name: my-loki
command: [ "-config.file=/etc/loki/local-config.yaml" ]
ports:
- "3100:3100"
# Grafana
grafana:
image: grafana/grafana
container_name: my-grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./docker/grafana:/etc/grafana/provisioning/datasources:ro
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=password
# Product-service
product-service:
build: ./
container_name: product-service
depends_on:
- tempo
- loki
restart: always
ports:
- "8080:8080"