-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose_example.yml
53 lines (47 loc) · 1.81 KB
/
docker-compose_example.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
#
# Docker: CONSULitAS/Polestar_2_MQTT_Docker
#
# (C) CONSULitAS, Dr. Jochen Groppe, 2024 - GPL V3
#
# https://github.com/CONSULitAS/Polestar_2_MQTT_Docker/tree/main
#
# Docker Container with gateway between Polestar API and MQTT
#
# Get it up and running:
# - install docker
# - download and rename this file to 'docker-compose.yml' (remove '_example')
# - edit values under 'environment:' to match your needs
# - no volumes or network needed
# - start container with 'docker compose up'
#version: '3.8' (deprecated)
services:
polestar2mqtt:
# build: . # only used for local build
image: consulitas/polestar_2_mqtt_docker:latest
container_name: "polestar2mqtt"
restart: always
environment:
TZ: "Europe/Berlin"
POLESTAR_EMAIL: "xx@xxx"
POLESTAR_PASSWORD: "XXX"
POLESTAR_VIN: "LPSVSEDEEMLxxxxxx" # no spaces allowed
POLESTAR_CYCLE: 270 # seconds
MQTT_BROKER: "192.168.1.100" # IP or DNS name
MQTT_PORT: "1883"
MQTT_USER: "" # has to be empty ("") if broker has no password
MQTT_PASSWORD: "" # has to be empty ("") if broker has no password
BASE_TOPIC: "polestar2"
# optional SoC forwarding to OpenWB v1 (e.g. if no NodeRed installation is available)
#OPENWB_HOST: "openwb.lan or ip address of OpenWB"
#OPENWB_PUBLISH: True
#OPENWB_PORT: 1883 # default 1883 if unset
#OPENWB_LP_NUM: 1 # optional: defaults to 1, change for other LP
labels:
# automatic update using Watchtower (https://github.com/containrrr/watchtower) highly recommended
- "com.centurylinklabs.watchtower.enable=true"
logging:
driver: "json-file"
options:
max-size: "1m" # maximum log size 1 MiB
max-file: "3" # keep only 3 logfiles
# ***** EOF *****