28 lines
897 B
YAML
28 lines
897 B
YAML
services:
|
|
file-server:
|
|
build:
|
|
context: .
|
|
args:
|
|
# false drops the Ruby toolchain and github-linguist (~160MB smaller).
|
|
# Stage-4 text files then get natural-language enrichment but no
|
|
# programming language; the server warns at startup and carries on.
|
|
WITH_LINGUIST: "true"
|
|
image: file-server:latest
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
# Every pipeline stage (spool, done, text_done, binary, failed, nominated)
|
|
# lives under /data, so one volume holds the whole in-flight working set.
|
|
- fs-data:/data
|
|
environment:
|
|
# The four pools each default to nthreads(), which oversubscribes the
|
|
# threads Julia actually has. Size them for the host instead.
|
|
FS_WORKERS: "4"
|
|
FS_KNOWN_WORKERS: "4"
|
|
FS_UNKNOWN_WORKERS: "2"
|
|
FS_TEXT_WORKERS: "2"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
fs-data:
|