mirror of
https://github.com/tiennm99/phow2sim.git
synced 2026-05-19 19:26:51 +00:00
503d877a94
Match word2sim's pattern — port stays unexposed by default; caller uncomments only if they want to reach the service from the host. Keeps it network-internal-friendly when run behind a reverse proxy on the same compose network.
23 lines
810 B
YAML
23 lines
810 B
YAML
services:
|
|
phow2sim:
|
|
build: .
|
|
container_name: phow2sim
|
|
# uncomment to expose this port on the host
|
|
# ports:
|
|
# - "8001:8000"
|
|
environment:
|
|
# URL serving the PhoW2V zip with a plain GET. Any auth goes in
|
|
# the URL itself (share token, signed URL, etc.) — the service
|
|
# sends no Authorization header. Leave empty only if you've
|
|
# pre-populated the volume (see the volume mount below).
|
|
MODEL_URL: ${MODEL_URL:-}
|
|
MODEL_PATH: ${MODEL_PATH:-/data/phow2v/word2vec_vi_words_300dims.txt}
|
|
volumes:
|
|
- phow2v-cache:/data/phow2v
|
|
# Or mount a locally-downloaded .txt and skip MODEL_URL entirely:
|
|
# - ./models/word2vec_vi_words_300dims.txt:/data/phow2v/word2vec_vi_words_300dims.txt:ro
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
phow2v-cache:
|