forked from iburistu/cync-lan
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
47 lines (45 loc) · 1.54 KB
/
docker-compose.yaml
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
version: '3'
# Remember, you need to:
# - Login and configure your Cync devices in the Cync app.
# - downloaded cync-lan.py and run `cync-lan.py export` to generate cync_mesh.yaml
# - Redirect DNS requests from: cm.gelighting.com to this machines IP address
# - Optional: Create or edit firewall rules to allow cync devices to talk to the cync-lan container
services:
cync-lan:
container_name: cync-lan
image: baudneo/cync-lan:latest
restart: unless-stopped
build:
dockerfile: ./Dockerfile
context: .
ports:
- "23779:23779"
volumes:
# Create a ./config dir and place the exported config file in this directory
# to bind mount into the container.
- ./config:/root/cync-lan/config
# Want to run custom code or upgrade in place? Bind-mount the custom/upgraded cync-lan.py into the container!
# - ./cync-lan.py:/root/cync-lan/cync-lan.py
environment:
TZ: "America/Chicago"
# CYNC_MQTT_HOST: "homeassistant.local"
# CYNC_MQTT_PORT: 1833
# CYNC_MQTT_USER: "username"
# CYNC_MQTT_PASS: "password"
# CYNC_TOPIC: "cync_lan"
# CYNC_HASS_TOPIC: "homeassistant"
# CyncLAN server options
# CYNC_CERT: "/root/cync-lan/certs/cert.pem"
# CYNC_KEY: "/root/cync-lan/certs/key.pem"
# CYNC_HOST: "0.0.0.0"
# CYNC_PORT: 23779
# Debug logging
# CYNC_DEBUG: 1
# CYNC_RAW_DEBUG: 1
# Interval between device online/offline and status check.
# CYNC_MESH_CHECK: 30
networks:
- cync-lan
networks:
cync-lan:
driver: bridge