forked from JarvyJ/HomeIntent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
72 lines (65 loc) · 1.68 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# NOTE: this is the dockerfile for local development,
# if you are looking for an example docker-compose, take a look at docker-compose.example.yaml
version: "3.9"
services:
rhasspy:
image: "rhasspy/rhasspy:2.5.11"
restart: unless-stopped
volumes:
- "./development-env/rhasspy:/profiles"
- "/etc/localtime:/etc/localtime:ro"
ports:
- "12101:12101"
- "12183:12183"
devices:
- "/dev/snd:/dev/snd"
command: --user-profiles /profiles --profile en
homeintent:
restart: unless-stopped
build:
context: .
dockerfile: "development-env/Dockerfile.python"
depends_on:
- rhasspy
- api
volumes:
- "./home_intent:/usr/src/app/home_intent"
- "./development-env/config:/config"
environment:
- DOCKER_DEV=True
- LANGUAGE=en
command: python3 home_intent
api:
build:
context: .
dockerfile: "development-env/Dockerfile.python"
volumes:
- "./ui:/usr/src/app/ui"
- "./home_intent:/usr/src/app/home_intent"
- "./docs:/usr/src/app/docs"
- "./development-env/config:/config"
environment:
- DOCKER_DEV=True
ports:
- "11102:11102"
command: python3 ui/main.py
frontend:
build:
context: .
dockerfile: "development-env/Dockerfile.frontend"
depends_on:
- api
volumes:
- "./ui/frontend:/usr/src/app/ui/frontend"
ports:
- "5173:5173"
command: /usr/src/app/ui/frontend/install-and-run.sh
docs:
build:
context: .
dockerfile: "development-env/Dockerfile.docs"
volumes:
- "./docs:/usr/src/app/docs"
ports:
- "8000:8000"
command: mkdocs serve -a 0.0.0.0:8000