-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 859 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (36 loc) · 859 Bytes
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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: campus-surveillance-backend
volumes:
- ./data:/app/data
- ./src:/app/src
ports:
- "5001:5000"
environment:
- FLASK_APP=src.dashboard.app
- FLASK_ENV=production
- PYTHONUNBUFFERED=1
devices:
- "/dev/video0:/dev/video0" # Pass through the camera device
privileged: true # Required for some camera access
restart: unless-stopped
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: campus-surveillance-frontend
volumes:
- ./data:/app/data
- ./src/dashboard:/app
ports:
- "5000:5000"
environment:
- FLASK_APP=app.py
- FLASK_ENV=production
restart: unless-stopped
volumes:
data: