libretranslate-api/docker-compose.yml

38 lines
736 B
YAML
Raw Normal View History

2024-04-18 15:42:52 +00:00
version: '3'
services:
libretranslate:
image: libretranslate
build:
context: ./LibreTranslate
args:
with_models: true
dockerfile: docker/Dockerfile
restart: always
hostname: libretranslate
container_name: libretranslate
expose:
- "5000"
networks:
libretranslatenet:
libretranslate-api:
image: node:21-slim
restart: always
hostname: libretranslate-api
container_name: libretranslate-api
working_dir: /libretranslate-api
user: node
entrypoint:
- node
- index.js
volumes:
- ./libretranslate-api:/libretranslate-api
ports:
- "5080:3000"
networks:
libretranslatenet:
networks:
libretranslatenet: