Files
phow2sim/docker-compose.yml
tiennm99 503d877a94 chore: comment out port mapping in docker-compose
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.
2026-04-23 11:19:12 +07:00

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: