- Replace per-service network_mode:bridge with a shared lingvai-net so lingvai-app can reach lingvai-translator by hostname - Set LOCAL_MODEL_ENDPOINT=http://lingvai-translator:5000/predictions and REPLICATE_MODE=local via environment so admin panel defaults are pre-configured for the local container - Add depends_on: translator so the app starts after the model is up - Host port 5030->5000 kept for direct debugging access Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
924 B
YAML
34 lines
924 B
YAML
services:
|
|
lingvai:
|
|
build: .
|
|
container_name: lingvai-app
|
|
ports:
|
|
- "3030:3000"
|
|
environment:
|
|
- ADMIN_PASSWORD=MuieSteaua09
|
|
- ADMIN_JWT_SECRET=the3-29-mu-ar3rwfd-dsfhui7
|
|
# Point directly at the translator container over the internal network
|
|
# (no Replicate API token needed in local mode)
|
|
- LOCAL_MODEL_ENDPOINT=http://lingvai-translator:5000/predictions
|
|
- REPLICATE_MODE=local
|
|
volumes:
|
|
- ./data:/app/data
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- translator
|
|
networks:
|
|
- lingvai-net
|
|
|
|
translator:
|
|
image: r8.im/jigsawstack/text-translate@sha256:454df4c49941c05dea05175bd37686d0872c73c1f9366d1c2505db32ade52a89
|
|
container_name: lingvai-translator
|
|
ports:
|
|
- "5030:5000" # 5030 on host for direct access / debugging
|
|
restart: unless-stopped
|
|
networks:
|
|
- lingvai-net
|
|
|
|
networks:
|
|
lingvai-net:
|
|
driver: bridge
|