-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-backup.yml
90 lines (83 loc) · 2.35 KB
/
docker-compose-backup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: "3.9"
services:
homeassistant:
privileged: true
image: homeassistant/home-assistant:latest
container_name: homeassistant
volumes:
- /srv/docker/homeassistant:/config
environment:
- PUID=1001
- PGID=1001
- TZ=America/New_York
ports:
- 8123:8123
# network_mode: host
restart: unless-stopped
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "68mb" # 3 cameras at 1280 x 720
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/docker/frigate/config:/config/
- /srv/docker/frigate/media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000" # unauthenticated port - needed for home assistant for now
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
- "8971:8971" # authenticated UI
environment:
FRIGATE_RTSP_PASSWORD: ""
deploy: # <------------- Add this section
resources:
reservations:
devices:
- driver: nvidia
# device_ids: ['0'] # this is only needed when using multiple GPUs
count: 1 # number of GPUs
capabilities: [gpu]
tunnel:
container_name: cloudflared-tunnel
image: cloudflare/cloudflared:latest
restart: unless-stopped
command: tunnel run
environment:
- TUNNEL_TOKEN=xxx
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
volumes:
- /srv/docker/mosquitto:/mosquitto
- /srv/docker/mosquitto/data:/mosquitto/data
- /srv/docker/mosquitto/log:/mosquitto/log
ports:
- 1883:1883
- 9001:9001
zwave:
container_name: zwave
image: zwavejs/zwave-js-ui:latest
restart: unless-stopped
volumes:
- /srv/docker/zwave:/usr/src/app/store
devices:
- /dev/serial/by-id/usb-0658_0200-if00:/dev/zwave
ports:
- 8091:8091
- 3000:3000
# set trusted docker internal network
networks:
default:
name: homeassistant
ipam:
config:
- subnet: 0.0.0.0
ip_range: 0.0.0.0
gateway: 0.0.0.0