Connecting the Docker worker
Docker worker for local transcription: installing it on a Linux server from scratch, connecting it to MikoPBX, checking that it works, updating and removing it.
The Docker worker is a container that recognizes call recordings locally on your Linux server. It takes jobs from the queue of the Local Transcription module, downloads the recording, recognizes it with the model selected in MikoPBX, and sends timestamped segments and technical diagnostics back to the PBX. Recordings never leave your network.
The Docker worker can run at the same time as Local STT Worker for macOS and the Windows worker: each platform has its own model selected on the Model marketplace tab, and each worker receives jobs with the model of its own platform.
The image is published on Docker Hub: excla1m/mikopbx-stt-worker. The latest tag always points to the latest stable version.
Requirements
OS
64-bit Linux (x86_64 or arm64)
Ubuntu Server 24.04 LTS or Debian 12
CPU
4 cores
8 cores with AVX2 support
Memory
4 GB
8 GB (required for T-one); 4 GB more with summarization
Disk
30 GB
50 GB
Docker
Docker Engine with the Compose plugin 2.24 or newer
latest stable version
Network
outbound HTTPS to MikoPBX, Docker Hub and huggingface.co
the same; no inbound ports are needed
MikoPBX
2025.1.1 and a module version with the Docker platform on the Model marketplace tab
latest module version
Models
The model is selected in MikoPBX. The worker downloads it on first start and keeps it in the models volume. Every model is pinned to a specific version, and the worker checks the SHA-256 of each file and refuses to load the model on any mismatch.
GigaAM v3 (default)
Russian
Russian calls: best accuracy, punctuation, numerals
0.9 GB
T-one
Russian
Russian telephony, no punctuation
5.6 GB
Whisper Large V3 Turbo
about 99 languages
Any language and mixed-language calls; the slowest on a CPU
1.6 GB
Parakeet TDT 0.6B v3
25 European
European languages
2.5 GB
GigaAM Multilingual
Kazakh, Kyrgyz, Uzbek, Russian, English
Central Asian languages, no punctuation
0.9 GB
Step 1. Prepare the server
Install Docker Engine and the Compose plugin:
Check the installation and the CPU:
Check access to MikoPBX, Docker Hub and the model storage:
Step 2. Prepare MikoPBX
Open Modules → Local Transcription → the Model marketplace tab.
Switch the platform to Docker, select a model, for example GigaAM v3, and click Save model.
Go to the Workers tab, select the Docker platform, and click Create API key.
Copy the key: it is shown only once and is no longer available after the page is reloaded.
Step 3. Get the image
Docker picks the server architecture (x86_64 or arm64) automatically. The image takes about 2 GB.
Step 4. The compose.yaml file
Create the worker directory and the compose.yaml file:
name: local-stt-worker
Fixes the volume names (local-stt-worker_models, local-stt-worker_data) whatever the directory is called.
restart: unless-stopped
The worker starts together with Docker after a server reboot.
volumes
models holds the downloaded models, data holds the worker settings, UID and status.
read_only, cap_drop, no-new-privileges
The container cannot write anywhere except the volumes and /tmp, and runs without privileges as uid 10001.
stop_grace_period: 90s
Time for the current job to finish or return to the queue when the worker stops.
Step 5. Connect to MikoPBX (setup)
Run the setup wizard:
The wizard asks for:
MikoPBX address:
https://<mikopbx-address>without a path.Whether to verify the MikoPBX certificate: no by default (see the TLS section).
Worker key: the key from step 2; the input is hidden.
Worker name: how it is shown on the Workers tab.
The wizard then checks the connection, registers the worker and saves the settings in the data volume (/data/config.json, mode 600). Example of a successful run:
Step 6. Start
On first start the worker downloads the model (GigaAM v3 is about 0.9 GB, about 2-3 minutes at 50 Mbit/s) and checks its checksums, then starts taking jobs. While the model is loading, status shows downloading / loading the model.
Checking that it works
On the Workers tab in MikoPBX, the worker appears with the Online status, its IP address and model.
statusshowsprocessing a joborwaiting for jobsand a growing job counter:
The container log shows every job:
The call card shows the transcript, and its technical information shows the engine, device and processing time.
RTF is the ratio of processing time to recording length. For example, RTF 0.1 means a 10-minute call is recognized in one minute.
Management
Status
docker compose exec worker local-stt-worker status
Log
docker compose logs -f --tail 100
Check the connection and key
docker compose run --rm worker check
Stop
docker compose stop
Start
docker compose start
Restart
docker compose restart
Change settings
docker compose run --rm worker setup, then docker compose up -d
Run all commands in the /opt/mikopbx-stt-worker directory. When the worker stops, the current job finishes or returns to the MikoPBX queue, and new calls wait in the queue.
Updating
Pull the new image version and re-create the container. Models and settings are kept in the volumes.
When the container is re-created, the current job finishes or returns to the queue. To pin a specific version, set a tag such as excla1m/mikopbx-stt-worker:<version>-cpu in the image line; the list of versions is on the Tags tab on Docker Hub.
Removing
Then delete this worker's API key on the Workers tab in MikoPBX. Without -v the volumes are kept, and a reinstall does not have to download the model again.
Configuration with .env
Instead of setup, you can set the parameters in a .env file next to compose.yaml. A non-empty environment variable always takes precedence over the value saved by the wizard.
PBX_URL
-
MikoPBX address: https://host[:port], no path
WORKER_TOKEN / WORKER_TOKEN_FILE
-
Worker key as a string or a path to a file inside the container
WORKER_NAME
Docker STT worker
Name on the Workers tab
WORKER_UID
generated automatically
Permanent identifier; a key is bound to one UID
PBX_TLS_VERIFY
false
true rejects an untrusted MikoPBX certificate
PBX_CA_FILE
-
Additional CA (PEM or DER) when TLS verification is on
POLL_INTERVAL
5
Pause between queue polls when idle, seconds
HEARTBEAT_INTERVAL
60
Job lease renewal interval, seconds
LOG_LEVEL
INFO
DEBUG, INFO, WARNING, ERROR
Summarization
If Get call summarization is on in the module settings, the worker also writes the topic and a short summary of every new call. The Gemma 3 4B model runtime is already in the image, so there is nothing extra to install.
The model, about 2.5 GB, is downloaded in the background into the
modelsvolume; transcription keeps working meanwhile.Summaries are written only when there are no recordings to transcribe. One summary takes about 30-60 seconds on 4 cores.
While the model is loaded it needs about 3 GB of RAM; plan for 4 GB. If you limited the container memory (
mem_limit,deploy.resources.limits.memory, or--memory), raise the limit by about 4 GB, otherwise summarization will fail.statusshows the summarization state in theSummarizationline: off, downloading the model with a percentage, ready, summarizing, or the error.
TLS
Certificate verification is off by default: the worker accepts any MikoPBX certificate (self-signed, issued for another name, or when connecting by IP address), and the traffic is still encrypted. This matches Local STT Worker for macOS.
To reject untrusted certificates, turn verification on in setup or set PBX_TLS_VERIFY=true. The system CA store is used; for your own certificate authority, pass its file with PBX_CA_FILE and mount it into the container as a volume.
Troubleshooting
status: waiting: MikoPBX has a macOS model selected (choose a Linux model)
An old module version is installed, in which only one platform works at a time. Update Local Transcription.
status: waiting: update ModuleLocalSpeechToText
The module version does not support the Linux platform. Update Local Transcription.
status: waiting: this image cannot run the selected model
This image version does not support the selected model. Update the image or select another model.
MikoPBX rejected the worker key
The key was deleted, mistyped, or is already bound to another worker. Create a new key on the Workers tab and run setup again.
TLS error when connecting
Certificate verification is on, and the MikoPBX certificate is untrusted. Turn verification off or pass your CA.
docker pull fails with connection reset or a timeout
Docker Hub is not reachable. Allow outbound HTTPS to registry-1.docker.io and production.cloudfront.docker.com, or configure a registry mirror.
The model does not download
huggingface.co is not reachable. Allow outbound HTTPS for the server or set up a proxy.
Recognition is slow (RTF above 0.3 for GigaAM)
Too few cores or a CPU without AVX2. Add cores to the virtual machine and check the EVC mode.
The container is unhealthy
The worker loop has not reported for 10 minutes. Check docker compose logs --tail 200.
Data and security
Models
volume local-stt-worker_models (/models)
Settings and key
volume local-stt-worker_data, file /data/config.json with mode 600
Worker UID
volume local-stt-worker_data, file /data/worker_uid
Temporary audio
/tmp inside the container, in memory, deleted after the job
Logs
Docker log, up to 5 files of 20 MB
The worker connects to MikoPBX only with outbound HTTPS requests, receives only the recordings of jobs assigned to it, and does not keep them after processing. The worker key grants access only to the transcription module API.
Last updated
Was this helpful?

