-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
67 lines (61 loc) · 1.58 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
67 lines (61 loc) · 1.58 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'
services:
tesla-cli:
build: .
container_name: tesla-cli
ports:
- "${TESLA_PORT:-8080}:8080"
volumes:
- tesla-config:/root/.tesla-cli
depends_on:
- postgres
- mosquitto
environment:
- TESLA_VIN=${TESLA_VIN:-}
restart: unless-stopped
postgres:
image: postgres:16-alpine
container_name: tesla-postgres
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=${DB_PASSWORD:-teslamate}
- POSTGRES_DB=teslamate
volumes:
- tesla-db:/var/lib/postgresql/data
restart: unless-stopped
teslamate:
image: teslamate/teslamate:latest
container_name: teslamate
environment:
- DATABASE_URL=postgresql://teslamate:${DB_PASSWORD:-teslamate}@postgres/teslamate
- MQTT_HOST=mosquitto
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-supersecretkey}
ports:
- "${TM_PORT:-4000}:4000"
depends_on:
- postgres
- mosquitto
restart: unless-stopped
grafana:
image: teslamate/grafana:latest
container_name: tesla-grafana
environment:
- DATABASE_URL=postgresql://teslamate:${DB_PASSWORD:-teslamate}@postgres/teslamate
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD:-admin}
ports:
- "${GRAFANA_PORT:-3000}:3000"
depends_on:
- postgres
restart: unless-stopped
mosquitto:
image: eclipse-mosquitto:2
container_name: tesla-mosquitto
ports:
- "${MQTT_PORT:-1883}:1883"
volumes:
- mosquitto-data:/mosquitto/data
restart: unless-stopped
volumes:
tesla-config:
tesla-db:
mosquitto-data: