-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (52 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
64 lines (52 loc) · 1.67 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
# APS2MQTT Docker Compose Configuration
# Copy this file to docker-compose.yml and configure your values
# See docker-compose.yml.example for reference
services:
aps2mqtt:
image: aps2mqtt:2.1.0 # Image locale buildée
container_name: aps2mqtt
hostname: aps2mqtt
restart: unless-stopped
environment:
# Timezone configuration
- TZ=Europe/Paris
# Debug mode
- DEBUG=True
# ECU Configuration
- APS_ECU_IP=192.168.1.161
- APS_ECU_PORT=8899
- APS_ECU_TIMEZONE=Europe/Paris
# ECU Auto-restart (for ECU-R-Pro with WiFi control)
- APS_ECU_AUTO_RESTART=True
- APS_ECU_WIFI_SSID=ECU
- APS_ECU_WIFI_PASSWD=88888888
# Night mode (stop querying at night)
- APS_ECU_STOP_AT_NIGHT=False
- APS_ECU_POSITION_LAT=48.8566
- APS_ECU_POSITION_LNG=2.3522
# MQTT Broker Configuration
- MQTT_BROKER_HOST=192.168.1.46
- MQTT_BROKER_PORT=1883
- MQTT_BROKER_USER=your_mqtt_user
- MQTT_BROKER_PASSWD=your_mqtt_password
- MQTT_CLIENT_ID=APS2MQTT
- MQTT_TOPIC_PREFIX=aps2mqtt
# MQTT Security
- MQTT_BROKER_SECURED_CONNECTION=False
- MQTT_BROKER_CACERTS_PATH=
# Uncomment for local development
# build:
# context: .
# dockerfile: Dockerfile
# Uncomment if you need custom CA certificates
# volumes:
# - ./certs:/certs:ro
# Network mode (optional)
# network_mode: host
# Health check
healthcheck:
test: ["CMD", "python3", "-c", "import sys; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s