-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 1.32 KB
/
docker-compose.yaml
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
version: "3"
services:
emotion-detection:
image: emotion-detection:1.0.0
devices:
- /dev/video0:/dev/video0
- /dev/gpiomem:/dev/gpiomem
- /dev/spidev0.0:/dev/spidev0.0
- /dev/spidev0.1:/dev/spidev0.1
environment:
- PYTHONUNBUFFER=1
# Uncomment to display video
# - DISPLAY=$DISPLAY
- MQTT_HOSTNAME=mosquitto
volumes:
# - /tmp/.X11-unix:/tmp/.X11-unix
- ./emotion-detection-service/app:/app
working_dir: /app
# depends_on:
# - mosquitto
# mosquitto:
# image: eclipse-mosquitto
# volumes:
# - ./mqtt-service/config:/mosquitto/config
# - ./mqtt-service/data:/mosquitto/data
# - ./mqtt-service/log:/mosquitto/log
# ports:
# - 1883:1883
# expose:
# - 1883
#
# backend:
# image: node:18.16-alpine
# environment:
# - MQTT_HOSTNAME=mosquitto
# volumes:
# - ./backend-service:/backend-service
# - ./backend-service/node_modules:/backend-service/node_modules
# working_dir: /backend-service
# command: sh -c "npm install && npm run serve"
# depends_on:
# - mosquitto
# - emotion-detection