mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-08-21 04:33:22 +00:00
Back Alive!
This commit is contained in:
84
docker/docker-compose.yaml
Executable file
84
docker/docker-compose.yaml
Executable file
@@ -0,0 +1,84 @@
|
||||
version: '2'
|
||||
services:
|
||||
mqtt:
|
||||
image: eclipse-mosquitto:latest
|
||||
container_name: "MQTT"
|
||||
restart: always
|
||||
network_mode: "host"
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- /home/suresh/docker/mqtt/data:/mosquitto/data
|
||||
- /home/suresh/docker/mqtt/config:/mosquitto/config
|
||||
- /home/suresh/docker/mqtt/log:/mosquitto/log
|
||||
|
||||
home-assistant:
|
||||
image: homeassistant/home-assistant:latest
|
||||
container_name: "home_assistant"
|
||||
restart: always
|
||||
network_mode: "host"
|
||||
devices:
|
||||
- /dev/ttyACM0
|
||||
depends_on:
|
||||
- mqtt
|
||||
ports:
|
||||
- "8123:8123"
|
||||
volumes:
|
||||
- /home/homeassistant/.homeassistant/:/config
|
||||
|
||||
homebridge:
|
||||
image: oznu/homebridge:latest
|
||||
container_name: "homebridge_docker"
|
||||
restart: always
|
||||
network_mode: host
|
||||
environment:
|
||||
- TZ=America/New_York
|
||||
- PGID=1000
|
||||
- PUID=1000
|
||||
volumes:
|
||||
- /home/suresh/docker/homebridge:/homebridge
|
||||
depends_on:
|
||||
- home-assistant
|
||||
|
||||
influxdb:
|
||||
image: influxdb:latest
|
||||
container_name: influxdb
|
||||
restart: always
|
||||
network_mode: host
|
||||
ports:
|
||||
- 8086:8086
|
||||
- 8083:8083
|
||||
volumes:
|
||||
- /home/suresh/docker/influxdb/:/var/lib/influxdb
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
network_mode: host
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- /home/suresh/docker/grafana/:/var/lib/grafana
|
||||
depends_on:
|
||||
- influxdb
|
||||
restart: always
|
||||
|
||||
docker_mon:
|
||||
image: philhawthorne/ha-dockermon
|
||||
container_name: ha_dockermon
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /path/to/config:/config
|
||||
ports:
|
||||
- 8126:8126
|
||||
|
||||
docker_machinebox:
|
||||
image: machinebox/tagbox
|
||||
container_name: machine_box
|
||||
restart: always
|
||||
ports:
|
||||
- 8080:8080
|
||||
environment:
|
||||
MB_KEY: !secret MB_KEY
|
6
docker/dockermon.docker
Executable file
6
docker/dockermon.docker
Executable file
@@ -0,0 +1,6 @@
|
||||
docker run -d \
|
||||
--name=ha-dockermon --restart=always \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /path/to/config:/config \
|
||||
-p 8126:8126 \
|
||||
philhawthorne/ha-dockermon
|
6
docker/home-assistant.docker
Executable file
6
docker/home-assistant.docker
Executable file
@@ -0,0 +1,6 @@
|
||||
docker run -it \
|
||||
-p 8123:8123 \
|
||||
-v /home/homeassistant/.homeassistant/:/config \
|
||||
--net=host \
|
||||
--device=/dev/ttyACM0 \
|
||||
homeassistant/home-assistant:latest
|
1
docker/homebridge.docker
Executable file
1
docker/homebridge.docker
Executable file
@@ -0,0 +1 @@
|
||||
sudo docker run --net=host --restart always --privileged=true --name=homebridge -v /home/mahasri/.homebridge:/root/.homebridge daxingplay/homebridge-homeassistant:latest
|
12
docker/mqtt.docker
Executable file
12
docker/mqtt.docker
Executable file
@@ -0,0 +1,12 @@
|
||||
Step 1:
|
||||
Copy /etc/mosquitto/conf.d/mosquitto.conf to /home/suresh/docker/mqtt/config/ directory
|
||||
Copy /etc/mosquitto/passwd to /mqtt/config directory
|
||||
|
||||
Step 2:
|
||||
Run `sudo chown mosquitto:mosquitto mosquitto.conf`
|
||||
|
||||
Step 3:
|
||||
Edit mosquitto.conf and set the passwd file path to /mqtt/config file
|
||||
|
||||
# Run the following command
|
||||
docker run -it -p 1883:1883 -p 9001:9001 -v /home/suresh/docker/mqtt/config:/mosquitto/config/ eclipse-mosquitto:latest
|
Reference in New Issue
Block a user