-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose_example.yml
40 lines (37 loc) · 1.33 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
#
# 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"
POLESTAR_CYCLE: 300 # seconds
MQTT_BROKER: "192.168.1.100"
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"
labels:
# automatic update using Watchtower (https://github.com/containrrr/watchtower) highly recommended
- "com.centurylinklabs.watchtower.enable=true"
# ***** EOF *****