26 lines
763 B
YAML
26 lines
763 B
YAML
version: "3.9"
|
|
|
|
networks:
|
|
public:
|
|
external: true
|
|
|
|
services:
|
|
homeassistant:
|
|
image: "ghcr.io/home-assistant/home-assistant:stable"
|
|
container_name: homeassistant
|
|
restart: always
|
|
volumes:
|
|
- "./homeassistant-config-data:/config"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
# ports:
|
|
# - "8123:8123"
|
|
networks:
|
|
- public
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.homeassistant.rule=Host(`${HOMEASSISTANT_DOMAIN}`)"
|
|
- "traefik.http.routers.homeassistant.service=homeassistant-service"
|
|
- "traefik.http.services.homeassistant-service.loadbalancer.server.port=8123"
|
|
- "traefik.http.routers.homeassistant.tls=true"
|
|
- "traefik.http.routers.homeassistant.tls.certresolver=le"
|