-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
47 lines (46 loc) · 1011 Bytes
/
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.7'
services:
camera:
build:
context: ./camera-app
image: birbcam/camera
init: true
volumes:
- ./camera-app/:/usr/app/
- /opt/vc:/opt/vc
- ./data/:/data/
devices:
- /dev/video0:/dev/video0
command: python3 /usr/app/birbcam.py
environment:
- DB_PATH=/data/model.db
- MODEL_PATH=/data/birbcam_prod.pkl
- BIRBCAM_PATH=/usr/app
- DATA_DIR=/data
# runtime: "nvidia"
env_file:
- settings.env
restart: always
webapp:
build:
context: ./webapp
image: birbcam/webapp
init: true
command: flask run --host=0.0.0.0
working_dir: /app
volumes:
- ./webapp/birbcam-app:/app
- ./data/:/data/
ports:
- "8080:5000"
env_file:
- settings.env
environment:
- DB_PATH=/data/model.db
- FLASK_APP=app.py
- MODEL_PATH=/data/birbcam_prod.pkl
- BIRBCAM_PATH=/app
- DATA_DIR=/data
# runtime: "nvidia"
restart: always