Skip to content

Commit

Permalink
updated devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeblackshear committed Jun 12, 2021
1 parent 7fc9026 commit b91b0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Frigate Dev",
"dockerComposeFile": "../docker-compose.yml",
"service": "dev",
"workspaceFolder": "/opt/frigate",
"workspaceFolder": "/lab/frigate",
"extensions": [
"ms-python.python",
"visualstudioexptteam.vscodeintellicode",
Expand Down
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
dev:
container_name: frigate-dev
user: vscode
privileged: true
build:
context: .
dockerfile: docker/Dockerfile.dev
Expand All @@ -11,18 +12,15 @@ services:
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/opt/frigate:cached
- .:/lab/frigate:cached
- ./config/config.yml:/config/config.yml:ro
- ./debug:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "1935:1935"
- "5000:5000"
- "5001:5001"
- "8080:8080"
entrypoint: ["sudo", "/init"]
command: /bin/sh -c "while sleep 1000; do :; done"
mqtt:
container_name: mqtt
Expand Down

0 comments on commit b91b0d3

Please sign in to comment.