Commit f1720f93 authored by Aku Rouhe's avatar Aku Rouhe

Combined all services into one compose file

parent 5e2b410e
......@@ -8,16 +8,24 @@ The containers in apps/ run the different parts of the system
## Base container
All the apps are based on the base container. Please build it first by running:
```
cd base-kaldi
docker-compose build
docker-compose -f base-kaldi/docker-compose.yml build
```
This container has a working Kaldi build with all the scripts, and also all the online binaries
Thanks to jcsilva, https://github.com/jcsilva/docker-kaldi-gstreamer-server
## asr-master and asr-worker
## Services
There are three services, found under ./apps/ and defined together in ./docker-compose.yml
They need some ASR models mounted in volumes. See ./docker-compose.dev.yml how they are mounted, and ./apps/asr-worker/tellme-fin.yaml for an example config.
To start the services in daemon mode, run
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
```
### asr-master and asr-worker
These run a custom version of https://github.com/alumae/kaldi-gstreamer-server
The master server delegates requests to workers, which run the actual ASR
## graph-creator
### graph-creator
This creates prompt-specific decoding graphs with https://github.com/Gastron/miscue-tolerant-lm-fst
services:
asr-master:
command: ["--port=443", "--block=True"]
version: '3'
services:
asr-master:
restart: always
build: .
ports:
- "5443:443"
version: '3'
services:
asr-worker:
restart: always
build: .
services:
server:
volumes:
- /l/rouhea1/online-models/tellme-fin/s5:/opt/s5
version: '3'
services:
asr-worker:
volumes:
- /l/rouhea1/online-models/tellme-fin/s5:/opt/s5
- ./tellme-fin.yaml:/opt/asr-conf.yaml
network_mode: "host"
command: ["-c","/opt/asr-conf.yaml","-u","ws://localhost:5443/worker/ws/speech"]
- ./apps/asr-worker/tellme-fin.yaml:/opt/asr-conf.yaml
graph-creator:
volumes:
- /l/rouhea1/online-models/tellme-fin/s5:/opt/s5
version: '3'
services:
server:
asr-master:
restart: always
build: .
build: ./apps/asr-master
ports:
- "5443:443"
command: ["--port=443", "--block=True"]
asr-worker:
restart: always
build: ./apps/asr-worker
command: ["-c","/opt/asr-conf.yaml", "-u","ws://asr-master:5443/worker/ws/speech"]
graph-creator:
restart: always
build: ./apps/graph-creator
ports:
- 127.0.0.1:5050:5000
volumes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment