forked from flosoft/TeslaETA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-teslamate.dev.yml
51 lines (48 loc) · 1.31 KB
/
docker-compose-teslamate.dev.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
services:
teslamate:
image: teslamate/teslamate:latest
restart: always
environment:
- ENCRYPTION_KEY=secretkey #replace with a secure key to encrypt your Tesla API tokens
- DATABASE_USER=teslamate
- DATABASE_PASS=password #insert your secure database password!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
ports:
- 4000:4000
volumes:
- ./dev/import:/opt/app/import
cap_drop:
- all
api:
image: tobiasehlert/teslamateapi:edge
restart: always
ports:
- 8080:8080
environment:
- ENCRYPTION_KEY=secret
- DATABASE_USER=teslamate
- DATABASE_PASS=password
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
- TZ=Europe/Berlin
database:
image: postgres:16
restart: always
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=password #insert your secure database password!
- POSTGRES_DB=teslamate
volumes:
- ./dev/teslamate-db:/var/lib/postgresql/data
mosquitto:
image: eclipse-mosquitto:2
restart: always
command: mosquitto -c /mosquitto-no-auth.conf
# ports:
# - 1883:1883
volumes:
- ./dev/mosquitto-conf:/mosquitto/config
- ./dev/mosquitto-data:/mosquitto/data