-
Notifications
You must be signed in to change notification settings - Fork 102
/
docker-compose.yml
44 lines (38 loc) · 1.17 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
version: '2'
services:
influxdb:
image: "influxdb:latest"
container_name: "influxdb_apiscraper"
environment:
- INFLUXDB_DB="tesla"
volumes:
- /opt/apiscraper/influxdb:/var/lib/influxdb
grafana:
image: grafana/grafana:latest
container_name: "grafana_apiscraper"
environment:
- GF_INSTALL_PLUGINS=natel-discrete-panel,https://mephis.to/grafana-trackmap-panel/dist.zip;grafana-trackmap-panel
# - GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s/grafana/ <<< Set this if you want to hide Grafana begind a subpath, eg: https://yourhomeseerver.url/grafana/
ports:
- "3000:3000"
links:
- influxdb
user: "472"
volumes:
- /opt/apiscraper/grafana:/var/lib/grafana
- ./provisioning/:/etc/grafana/provisioning
apiscraper:
container_name: apiscraper
build:
args:
gitversion: 69e2af3cec804688c01c7c1b85a130997ca6107b
context: .
dockerfile: Dockerfile.compose
volumes:
- ./config.py:/tesla-apiscraper/config.py
- ./apiscraper.log:/tesla-apiscraper/apiscraper.log
ports:
- "8023:8023"
restart: on-failure:5
depends_on:
- influxdb