Advertisement
jarekmor

HA_Container_compose

Mar 25th, 2023
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.26 KB | None | 0 0
  1. version: '3'
  2. services:
  3.   homeassistant:
  4.     container_name: homeassistant
  5.     image: "ghcr.io/home-assistant/home-assistant:latest"
  6.     volumes:
  7.      - /home/jarek/Docker/homeassistant/home_assistant:/config
  8.       - /etc/localtime:/etc/localtime:ro
  9.     restart: unless-stopped
  10.     privileged: true
  11.     network_mode: host
  12.  
  13.   esphome:
  14.     container_name: esphome
  15.     image: esphome/esphome
  16.     volumes:
  17.      - /home/jarek/Docker/homeassistant/esphome:/config
  18.       - /etc/localtime:/etc/localtime:ro
  19.     restart: always
  20.     privileged: true
  21.     network_mode: host
  22.  
  23.   mosquitto:
  24.     container_name: mqtt
  25.     image: eclipse-mosquitto
  26.     volumes:
  27.      - /home/jarek/Docker/homeassistant/mosquitto/config:/mosquitto/config
  28.       - /home/jarek/Docker/homeassistant/mosquitto/data:/mosquitto/data
  29.       - /home/jarek/Docker/homeassistant/mosquitto/log:/mosquitto/log
  30.       - /home/jarek/Docker/homeassistant/mosquitto/config/mosquitto.conf:/mosquitto.conf
  31.     restart: always
  32.     network_mode: host
  33.  
  34.   glances:
  35.     container_name: glances
  36.     image: joweisberg/glances:latest
  37.     restart: unless-stopped
  38.     pid: host
  39.     ports:
  40.      - 61208:61208
  41.     environment:
  42.      - TZ=Europe/Warsaw
  43.       - GLANCES_OPT=--webserver
  44.     volumes:
  45.      - /var/run/docker.sock:/var/run/docker.sock:ro
  46.       - /var/docker/glances:/glances/conf
  47.  
  48.   zerotier:
  49.     image: zyclonite/zerotier
  50.     container_name: zerotier-one
  51.     devices:
  52.      - /dev/net/tun
  53.     network_mode: host
  54.     volumes:
  55.      - '/var/lib/zerotier-one:/var/lib/zerotier-one'
  56.     cap_add:
  57.      - NET_ADMIN
  58.       - SYS_ADMIN
  59.  
  60.   mariadb:
  61.     image: mariadb
  62.     container_name: mariadb
  63.     restart: always
  64.     environment:
  65.       MYSQL_DATABASE: homeassistant
  66.       MYSQL_USER: mariadb
  67.       MYSQL_PASSWORD: mariadb
  68.       MYSQL_ROOT_PASSWORD: mariadb#
  69.     ports:
  70.      - 3306:3306
  71.     volumes:
  72.      - /home/jarek/Docker/homeassistant/mariadb/data:/var/lib/mysql
  73.       - /home/jarek/Docker/homeassistant/mariadb/log:/var/log/mysql
  74.       - /home/jarek/Docker/homeassistant/mariadb/conf/my.conf:/etc/mysql/my.conf
  75.  
  76.   pihole:
  77.     container_name: pihole
  78.     image: pihole/pihole:latest
  79.     # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
  80.     ports:
  81.      - "53:53/tcp"
  82.       - "53:53/udp"
  83.       - "80:80/tcp"
  84.     environment:
  85.       TZ: 'Europe/Warsaw'
  86.       # WEBPASSWORD: 'set a secure password here or it will be random'
  87.     # Volumes store your data between container upgrades
  88.     volumes:
  89.      - './etc-pihole:/etc/pihole'
  90.       - './etc-dnsmasq.d:/etc/dnsmasq.d'
  91.     restart: unless-stopped
  92.  
  93.  
  94.   influxdb:
  95.     container_name: influxdb
  96.     image: influxdb:1.8
  97.     volumes:
  98.      - '/home/jarek/Docker/homeassistant/influxdb:/var/lib/influxdb'
  99.     ports:
  100.      - "8086:8086"
  101.       - "8083:8083"
  102.     restart: always
  103.  
  104.   grafana:
  105.     container_name: grafana
  106.     image: grafana/grafana-oss
  107.     volumes:
  108.      - '/home/jarek/Docker/homeassistant/grafana:/var/lib/grafana'
  109.     ports:
  110.      - "3000:3000"
  111.     user: "1000"
  112.     restart: unless-stopped
  113.  
  114.   go2rtc:
  115.     image: alexxit/go2rtc
  116.     network_mode: host       # important for WebRTC, HomeKit, UDP cameras
  117.     privileged: true         # only for FFmpeg hardware transcoding
  118.     restart: unless-stopped  # autorestart on fail or config change from WebUI
  119.     environment:
  120.      - TZ=Europe/Warsaw     # timezone in logs
  121.     volumes:
  122.      - "~Docker/homeassistant/go2rtc:/config"   # folder for go2rtc.yaml file (edit from WebUI)
  123.  
  124.   heimdall:
  125.     image: lscr.io/linuxserver/heimdall:latest
  126.     container_name: heimdall
  127.     environment:
  128.      - PUID=1000
  129.       - PGID=1000
  130.       - TZ=Europe/Warsaw
  131.     volumes:
  132.      - /home/jarek/Docker/heimdall:/config
  133.     ports:
  134.      - 8080:80
  135.       - 8443:443
  136.     restart: unless-stopped
  137.  
  138.   frigate:
  139.     container_name: frigate
  140.     image: blakeblackshear/frigate:stable
  141.     restart: always
  142.     volumes:
  143.      - /etc/localtime:/etc/localtime
  144.       - /home/jarek/Docker/homeassistant/frigate:/config:rw
  145.       - /home/jarek/Docker/homeassistant/frigate/clips:/media/frigate/clips:rw
  146.       - /home/jarek/Docker/homeassistant/frigate/recordings:/media/frigate/recordings:rw
  147.     ports:
  148.      - 5000:5000
  149.       - 1935:1935
  150.  
  151.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement