forked from evjrob/birbcam
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (57 loc) · 1.31 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
---
version: '3.7'
services:
camera:
container_name: "ai-critter-cam"
build:
context: ./camera-app
image: ai-critter/camera
init: true
volumes:
- ./camera-app/:/usr/app/
- /opt/vc:/opt/vc
- ./data/:/data/
devices:
- /dev/video0:/dev/video0
command: python3 /usr/app/ai-critter.py
environment:
- DB_PATH=/data/model.db
- MODEL_PATH=/data/ai_critter_prod.pkl
- AI-CRITTER_PATH=/usr/app
- DATA_DIR=/data
# runtime: "nvidia"
env_file:
- settings.env
restart: unless-stopped
webapp:
container_name: "ai-critter-web"
build:
context: ./webapp
image: ai-critter/webapp
init: true
command: flask run --host=0.0.0.0
working_dir: /app
volumes:
- ./webapp/ai-critter-app:/app
- ./data/:/data/
ports:
- "8080:5000"
env_file:
- settings.env
environment:
- DB_PATH=/data/model.db
- FLASK_APP=app.py
- MODEL_PATH=/data/ai_critter_prod.pkl
- AI-CRITTER_PATH=/app
- DATA_DIR=/data
# runtime: "nvidia"
restart: unless-stopped
yacht:
container_name: yacht
image: selfhostedpro/yacht
ports:
- 8000:8000
volumes:
- /yacht:/config
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped