-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.36 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.36 KB
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
services:
frigate-gdrive-sync:
build: .
image: frigate-gdrive-sync:latest
container_name: frigate-gdrive-sync
restart: unless-stopped
volumes:
# rclone.conf + config.yaml – mount read-only for security
- ./config:/config:ro
# SQLite persistence – survives container restarts
- frigate-sync-data:/data
# Ephemeral download staging – tmpfs for speed, no disk wear
- type: tmpfs
target: /tmp/frigate-sync
environment:
# Override any config.yaml value via env vars (see src/config.py)
# FRIGATE_HOST: "192.168.1.100"
# MQTT_HOST: "192.168.1.100"
# SYNC_WORKERS: "4"
# SYNC_DRY_RUN: "false"
# LOG_LEVEL: "INFO"
- CONFIG_PATH=/config/config.yaml
# Expose health port (optional – useful for uptime monitoring)
ports:
- "8080:8080"
healthcheck:
test:
- CMD
- python
- -c
- |
import urllib.request, sys
try:
r = urllib.request.urlopen('http://localhost:8080/health', timeout=4)
sys.exit(0 if r.status == 200 else 1)
except Exception:
sys.exit(1)
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
frigate-sync-data: