-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1.21 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
version: '3'
services:
redis:
image: "ghcr.io/scottbarnesg/smart-sec-cam/sec-cam-redis:latest"
build:
context: backend/smart_sec_cam/redis
ports:
- "6379:6379"
- "6380:6380"
restart: always
server:
image: "ghcr.io/scottbarnesg/smart-sec-cam/sec-cam-server:latest"
build:
context: .
dockerfile: backend/smart_sec_cam/server/Dockerfile
entrypoint: /backend/smart_sec_cam/server/docker-entrypoint.sh
volumes:
- ./data/:/backend/data/
- ./certs/:/backend/certs/
environment:
- API_URL=${API_URL}
- PYTHONUNBUFFERED=1
- ENABLE_REGISTRATION=0
ports:
- "8443:8443"
depends_on:
- redis
restart: always
motion-detection:
image: "ghcr.io/scottbarnesg/smart-sec-cam/sec-cam-motion:latest"
build:
context: backend/
dockerfile: smart_sec_cam/motion/Dockerfile
command: python smart_sec_cam/motion/main.py --redis-url redis --video-dir /backend/data/videos/
volumes:
- ./data/videos/:/backend/data/videos/
environment:
- PYTHONUNBUFFERED=1
- MOTION_THRESHOLD=10000
depends_on:
- redis
restart: always
deploy:
resources:
limits:
memory: 2G