theEndBeta

hassio_docker_compose

Feb 26th, 2021
1,298
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.8'
  2. services:
  3.   traefik:
  4.     image: traefik:v2.3
  5.     restart: unless-stopped
  6.     ports:
  7.      - "80:80"
  8.       - "443:443"
  9.     volumes:
  10.      - "/data/traefik/data:/etc/traefik"
  11.       - "/data/traefik/letsencrypt:/letsencrypt"
  12.       - /var/run/docker.sock:/var/run/docker.sock
  13.     environment:
  14.      - "CF_DNS_API_TOKEN=<redacted>"
  15.     extra_hosts:
  16.      - host.docker.internal:172.17.1.1
  17.   homeassistant:
  18.     container_name: homeassistant
  19.     image: "homeassistant/raspberrypi4-64-homeassistant:stable"
  20.     volumes:
  21.      - "/data/homeassistant/config:/config"
  22.       - /etc/localtime:/etc/localtime:ro
  23.     devices:
  24.      - /dev/bus/usb/001/003  # conbee II
  25.       - /dev/ttyACM0  # conbee II serial
  26.     restart: unless-stopped
  27.     init: true
  28.     network_mode: host
  29.     labels:
  30.      - "traefik.enable=true"
  31.       - "traefik.http.routers.homeassistant.rule=Host(`ha.wt.grangerclan.net`)"
  32.       - "traefik.http.routers.homeassistant.entrypoints=websecure"
  33.       - "traefik.http.routers.homeassistant.tls.certresolver=cloudflare"
  34.       - "traefik.http.services.homeassistant.loadbalancer.server.port=8123"
  35.   hassio_supervisor:
  36.     container_name: hassio_supervisor
  37.     image: "homeassistant/aarch64-hassio-supervisor:latest"
  38.     restart: unless-stopped
  39.     privileged: true
  40.     logging:
  41.       driver: journald
  42.     security_opt:
  43.        - apparmor:unconfined
  44.         - seccomp=unconfined
  45.     environment:
  46.      - "SUPERVISOR_SHARE=/data"
  47.       - SUPERVISOR_NAME=hassio_supervisor
  48.       - "HOMEASSISTANT_REPOSTIORY=homeassistant/raspberrypi4-64-homeassistant"
  49.       - SUPERVISOR_MACHINE=raspberrypi4-64
  50.     volumes:
  51.      - /run/docker.sock:/run/docker.sock
  52.       - /run/dbus:/run/dbus
  53.       - "/data/homeassistant:/data"
  54.       - /etc/localtime:/etc/localtime:ro
  55.     devices:
  56.      - /dev/bus/usb/001/003  # conbee II
  57.       - /dev/ttyACM0  # conbee II serial
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×