39 lines
827 B
YAML
39 lines
827 B
YAML
version: '3'
|
|
|
|
services:
|
|
libretranslate:
|
|
# image: registry.gitlab.com/manalejandro/libretranslate-api/libretranslate-api:latest
|
|
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:
|