-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
123 lines (117 loc) · 3.08 KB
/
docker-compose.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
portainer-agent:
image: portainer/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
ports:
- "9001:9001"
frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "512mb"
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config/config.yml:/config/config.yml:ro
- /media/gcoia/storage/volumes/nvr:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- 1935:1935
environment:
- FRIGATE_CAM_DOMAIN
- FRIGATE_RTSP_USER
- FRIGATE_RTSP_PASSWORD
# healthcheck:
# test: [ "CMD", "wget", "--spider", "http://localhost:5000/" ]
# interval: 30s
# timeout: 10s
# retries: 5
# start_period: 60s
depends_on:
- mqtt
scrypted:
image: koush/scrypted
container_name: frigate-scrypted
restart: unless-stopped
network_mode: host
volumes:
- ./scrypted:/server/volume
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
mqtt:
container_name: mqtt
image: eclipse-mosquitto:1.6
init: true
ports:
- 1883:1883
healthcheck:
test: [ "CMD", "timeout", "1", "mosquitto_sub", "-h", "localhost", "-p", "1883", "-t", "'topic'", "-E", "-i", "probe" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
amcrest2mqtt:
container_name: amcrest2mqtt
image: dchesterton/amcrest2mqtt:latest
restart: unless-stopped
environment:
- AMCREST_HOST
- AMCREST_PASSWORD
- MQTT_HOST=mqtt
- MQTT_USERNAME=admin
- HOME_ASSISTANT=true
depends_on:
- mqtt
frigate-home-proxy:
image: ghcr.io/gitgc/home-proxy-webserver:main
container_name: frigate-home-proxy
restart: unless-stopped
init: true
ports:
- 80:80
- 443:443
environment:
- CADDY_SUBDOMAIN
- CADDY_DOMAIN
- CADDY_PROXY_UPSTREAM
- CADDY_HEALTH_CHECK_URI
- DO_AUTH_TOKEN
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile:ro"
- "./home-proxy-webserver/site/:/var/www/html/"
- "./home-proxy-webserver/caddy_data/:/data/"
- "./home-proxy-webserver/caddy_config/:/config/"
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: [ "CMD", "wget", "--spider", "${CADDY_HEALTH_CHECK_URI}" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
depends_on:
- frigate
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: unless-stopped
environment:
- WATCHTOWER_SCHEDULE
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_ROLLING_RESTART=true
- WATCHTOWER_INCLUDE_STOPPED=true
- WATCHTOWER_REVIVE_STOPPED=true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro