Initial commit

This commit is contained in:
R. Gierwialo
2025-04-01 18:03:17 +00:00
commit a60f4aa414
9 changed files with 892 additions and 0 deletions

View File

@@ -0,0 +1,124 @@
version: "3"
networks:
internal_traffic:
external: true
services:
go2rtc:
container_name: ha_rtc
image: alexxit/go2rtc:1.9.8
network_mode: host
privileged: true
restart: unless-stopped
environment:
- TZ=Europe/Warsaw
volumes:
- "/srv/docker/config/homeassistant/go2rtc:/config"
ha_influxdb:
image: influxdb:1.8.10
container_name: ha_influxdb
restart: always
networks:
internal_traffic:
ipv4_address: 192.168.24.30
deploy:
resources:
limits:
cpus: '1'
memory: 512M
expose:
- 8086
volumes:
- /srv/docker/config/homeassistant/influxdb/data:/var/lib/influxdb
- /srv/docker/config//srv/docker/config/homeassistant/homeassistant/influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
- /srv/docker/config/homeassistant/influxdb/init:/docker-entrypoint-initdb.d
environment:
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME} # sourced from .env
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD} # sourced from .env
#chronograf:
# container_name: chronograf
# restart: always
# image: chronograf:latest
# expose:
# - 8888
# depends_on:
# - influxdb
# networks:
# internal_traffic:
# ipv4_address: 192.168.24.25
# environment:
# - INFLUXDB_URL=http://influxdb:8086 # needs to match container_name
# - INFLUXDB_USERNAME=${INFLUXDB_USERNAME} # sourced from .env
# - INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD} # sourced from .env
ha_mosquitto:
image: eclipse-mosquitto:latest
container_name: ha_mosquitto
restart: unless-stopped
networks:
internal_traffic:
ipv4_address: 192.168.24.20
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
ports:
- "1883:1883"
- "9001:9001"
expose:
- 1883
- 9001
volumes:
- /srv/docker/config/homeassistant/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /srv/docker/config/homeassistant/mosquitto/data:/mosquitto/data
- /srv/docker/config/homeassistant/mosquitto/log/:/mosquitto/log
ha_zigbee2mqtt:
image: koenkk/zigbee2mqtt:1.42.0
container_name: ha_zigbee2mqtt
restart: unless-stopped
privileged: true
deploy:
resources:
limits:
cpus: '1'
memory: 256M
expose:
- 8080
volumes:
- /run/udev:/run/udev:ro
- /srv/docker/config/homeassistant/zigbee2mqtt:/app/data
devices:
- /dev/ttyACM0:/dev/ttyACM0
networks:
internal_traffic:
ipv4_address: 192.168.24.15
environment:
- TZ=Europe/Warsaw
depends_on:
- ha_mosquitto
ha_core:
container_name: ha_core
restart: unless-stopped
image: ghcr.io/home-assistant/home-assistant:stable
deploy:
resources:
limits:
cpus: '2'
memory: 2G
depends_on:
- ha_zigbee2mqtt
- ha_influxdb
networks:
internal_traffic:
ipv4_address: 192.168.24.10
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/docker/config/homeassistant/core:/config