Skip to content

Instantly share code, notes, and snippets.

@marceldegraaf
Created January 7, 2023 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marceldegraaf/111daaf9e5ae40c62a1e59cd584e9a5e to your computer and use it in GitHub Desktop.
Save marceldegraaf/111daaf9e5ae40c62a1e59cd584e9a5e to your computer and use it in GitHub Desktop.
Home Assistant and Homebridge Setup
version: "3"
services:
home-assistant:
container_name: home-assistant
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- '/home/homeassistant/config:/config'
- '/etc/localtime:/etc/localtime:ro'
environment:
- TZ=Europe/Amsterdam
network_mode: host
restart: unless-stopped
version: "2"
services:
homebridge:
image: oznu/homebridge:latest
container_name: homebridge
restart: always
network_mode: host
environment:
- TZ=Europe/Amsterdam
- PGID=1000
- PUID=1000
- HOMEBRIDGE_CONFIG_UI=1
- HOMEBRIDGE_CONFIG_UI_PORT=8581
volumes:
- ./data:/homebridge
- /etc/localtime:/etc/localtime:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment