38 lines
736 B
YAML
38 lines
736 B
YAML
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:
|