-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
58 lines (53 loc) · 1.22 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
version: '3'
networks:
grafhista:
services:
grafana:
# image: grafana/grafana:9.2.1
image: grafana/grafana:latest
container_name: grafana
ports:
- 3000:3000
networks:
- grafhista
volumes:
- ./grafana:/var/lib/grafana
- ./etc/grafana:/etc/grafana
environment:
- GF_PATHS_CONFIG=/etc/grafana/grafana.ini
user: "$UserID"
mysql:
image: mysql:latest
container_name: mysql
restart: always
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'tux'
MYSQL_PASSWORD: 'Suse1234'
MYSQL_ROOT_PASSWORD: 'Suse1234'
ports:
- '3306:3306'
networks:
- grafhista
grafhista:
build: .
image: grafhista:latest
container_name: grafhista
ports:
- 3100:3100
networks:
- grafhista
volumes:
- ./etc/promtail:/etc/promtail
- ./etc/loki:/etc/loki
- ./logs:/logs
- ./source:/app
- /etc/localtime:/etc/localtime
user: root
command:
- /bin/bash
- -c
- |
promtail-linux-amd64 -config.file=/etc/promtail/promtail.yml &
loki-linux-amd64 -config.file=/etc/loki/loki.yaml &
sleep 30 && cd /app/sar && python3 create_sar_db.py