-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 3.78 KB
/
docker-compose.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
version: '3'
services:
tcplights:
container_name: TCPLightingWebInterface-MQTT
image: polargeek/tcp-lighting-web-interface-mqtt:latest
restart: unless-stopped
ports:
- "80:80"
healthcheck:
test: "curl --fail http://localhost || exit 1"
interval: 60s
timeout: 5s
retries: 20
# Mounting this single file allows the authorization token to survive container re-creation
volumes:
- './tcplights/tcp.token:/var/www/html/tcp.token' # Change as needed to point to your local volume store
environment:
- TCPBRIDGE_IP=192.168.1.1 # IP address of TCP Bridge/Gateway
- TCPBRIDGE_PORT=443 # 443 for new firmware, 80 for legacy - If you don't know, leave it at 443
- LOCAL_URL=http://localhost # Can be left - this is used in runSchedule to call the API
- [email protected] # Only needs to be changed if you are running multiple bridge instances
- TOKEN_PASSWORD=letmein # Only needs to be changed if you are running multiple bridge instances
- FADE_ON=0 # 0/1 makes it so when lights are turned off they fade to 0 (Like Philips Bulbs)
- FADE_OFF=0 # 0/1 makes it so when lights are turned on they fade to their assigned value from 0 (Like Philips Bulbs)
- TCP_TIMEZONE=America/Regina # Enter your timezone code to use scheduling in the web app
- TCP_LATITUDE=50.445211 # Enter your latitude to use the Sunup/Sundown feature
- TCP_LONGITUDE=-104.618894 # Enter your longitude to use the Sunup/Sundown feature
- MQTT_IP=192.168.1.2 # IP of the MQTT Server, you can use
- MQTT_PORT=1883 # Port of the MQTT Server (1883 is standard)
- MQTT_USERNAME=user # Username for your MQTT server
- MQTT_PASSWORD=Password # Password for your MQTT server
- MQTT_subscriber=tcp-subscriber # Only needs to be changed if you are running multiple bridge instances
- MQTT_publisher=tcp-publisher # Only needs to be changed if you are running multiple bridge instances
- MQTT_prefix=light # Only needs to be changed if you are running multiple bridge instances
# Topic prefix for lights - ie light/<room-name>/<light-name>/<UniqueBulbID>
- MQTTcontrol=tcp # Only needs to be changed if you are running multiple bridge instances
# Control topic identifier for host and script control ie control/<MQTT_control>
- HA_Discovery=1 # 0/1 Enable Home Assistant Discovery Topics
- HASSTopic_id=homeassistant # Only change if you have modified Home Assistants default MQTT settings
# Topic prefix for Home Assistant Discovery Topics - this must match with HASS
- HASSOnline=homeassistant/status # Only change if you have modified Home Assistants default MQTT settings
# Topic Home Assistant publishes to, to announce its online
- APACHE_RUN_USER=www-data # Dont change unless youve modified defaults
- APACHE_RUN_GROUP=www-data # Dont change unless youve modified defaults
- APACHE_LOG_DIR=/var/log/apache2 # Dont change unless youve modified defaults
- APACHE_LOCK_DIR=/var/lock/apache2 # Dont change unless youve modified defaults
- APACHE_PID_FILE=/var/run/apache2.pid # Dont change unless youve modified defaults