1
0
mirror of https://github.com/JarvyJ/HomeIntent.git synced 2022-02-11 01:01:05 +03:00
Files
homeIntent-rhasspy-integrat…/docker-compose.yaml
Jarvy Jarvison 6c8d6a9be4 Home Intent: Local development fixes (#263)
* fixed TTS based on language environment variable
* fallback to english will now work properly with the new module-based import system
* local development shouldn't need to specify the rhasspy api and mqtt urls any more
2022-01-02 23:09:43 -06:00

71 lines
1.6 KiB
YAML

# 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"
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:
- "3000:3000"
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