2024-04-18 15:42:52 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
libretranslate:
|
2024-04-18 16:10:09 +00:00
|
|
|
# image: registry.gitlab.com/manalejandro/libretranslate-api/libretranslate-api:latest
|
2024-04-18 15:42:52 +00:00
|
|
|
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:
|