-
-
Notifications
You must be signed in to change notification settings - Fork 170
/
docker-compose.yml
69 lines (64 loc) · 2.03 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
version: "3"
services:
teslalogger:
build: docker/teslalogger/.
restart: always
volumes:
- ./TeslaLogger/www:/var/www/html
- ./TeslaLogger/bin:/etc/teslalogger
- ./TeslaLogger/GrafanaDashboards/:/var/lib/grafana/dashboards/
- ./TeslaLogger/GrafanaPlugins/:/var/lib/grafana/plugins
- ./docker/teslalogger/Dockerfile:/tmp/teslalogger-DOCKER
- teslalogger-tmp:/tmp/
depends_on:
- database
environment:
- TZ=Europe/Berlin
ports:
- 5010:5000
database:
image: mariadb:10.4.7
restart: always
env_file:
- .env
volumes:
- ./TeslaLogger/sqlschema.sql:/docker-entrypoint-initdb.d/sqlschema.sql
- ./TeslaLogger/mysql:/var/lib/mysql
ports:
- 3306:3306
environment:
- TZ=Europe/Berlin
grafana:
image: grafana/grafana:10.0.1
restart: always
environment:
- GF_SECURITY_ADMIN_PASSWORD=teslalogger
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=natel-discrete-panel,pr0ps-trackmap-panel,teslalogger-timeline-panel
- TZ=Europe/Berlin
ports:
- 3000:3000
volumes:
- ./TeslaLogger/bin:/etc/teslalogger
- ./TeslaLogger/GrafanaDashboards/:/var/lib/grafana/dashboards/
- ./TeslaLogger/GrafanaPlugins/:/var/lib/grafana/plugins
- ./TeslaLogger/GrafanaDB:/var/lib/grafana/
- ./TeslaLogger/GrafanaConfig/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yml
- ./TeslaLogger/GrafanaConfig/sample.yaml:/etc/grafana/provisioning/dashboards/dashboards.yml
depends_on:
- database
webserver:
build: docker/webserver/.
restart: always
volumes:
- ./docker/webserver/php.ini:/usr/local/etc/php/php.ini
- ./TeslaLogger/www:/var/www/html
- ./TeslaLogger/bin:/etc/teslalogger
- ./docker/teslalogger/Dockerfile:/tmp/teslalogger-DOCKER
- ./TeslaLogger/GrafanaConfig/datasource.yaml:/tmp/datasource-DOCKER
- teslalogger-tmp:/tmp/
ports:
- 8888:80
environment:
- TZ=Europe/Berlin
volumes:
teslalogger-tmp: