homeassistant: Initial commit
This commit is contained in:
1
homeassistant/.env.example
Normal file
1
homeassistant/.env.example
Normal file
@@ -0,0 +1 @@
|
|||||||
|
HOMEASSISTANT_DOMAIN=domain_goes_here
|
||||||
25
homeassistant/docker-compose.yml
Normal file
25
homeassistant/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
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"
|
||||||
Reference in New Issue
Block a user