Skip to content

Commit

Permalink
Allow setting specific HA/Frigate versions in devcontainer (blakeblac…
Browse files Browse the repository at this point in the history
…kshear#289)

* Allow setting specific HA/Frigate versions in devcontainer

* Put env back into gitignore.
  • Loading branch information
dermotduffy authored Jun 19, 2022
1 parent 6292407 commit dd90e2a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .devcontainer/config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ homeassistant:
- type: homeassistant

demo:

panel_iframe:
frigate:
title: "Frigate"
url: "http://localhost:45000"
icon: "mdi:cctv"
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Set in '.env' in order to run specific versions of HA & Frigate.
#
# HA_VERSION=stable
# FRIGATE_VERSION=stable-amd64
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: '3'
version: "3"
services:
dev:
user: vscode
Expand All @@ -9,7 +9,7 @@ services:
- .:/workspace:cached
command: [sleep, infinity]
hass:
image: homeassistant/home-assistant:stable
image: "homeassistant/home-assistant:${HA_VERSION:-stable}"
restart: unless-stopped
ports:
- 48123:8123
Expand All @@ -22,7 +22,7 @@ services:
- ./custom_components:/config/custom_components:ro
frigate:
privileged: true
image: blakeblackshear/frigate:stable-amd64
image: "blakeblackshear/frigate:${FRIGATE_VERSION:-stable-amd64}"
restart: unless-stopped
devices:
- /dev/bus/usb:/dev/bus/usb
Expand Down

0 comments on commit dd90e2a

Please sign in to comment.