mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-04-18 21:12:13 +00:00
Merge pull request #732 from f-lombardo/changes-for-docker
Changes for docker
This commit is contained in:
commit
7f92c2d8ce
2 changed files with 3 additions and 5 deletions
|
@ -1,18 +1,16 @@
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
libretranslate:
|
libretranslate:
|
||||||
container_name: libretranslate
|
container_name: libretranslate
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: ./docker/Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
## Uncomment this for logging in docker compose logs
|
## Uncomment this for logging in docker compose logs
|
||||||
# tty: true
|
# tty: true
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
|
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
|
||||||
## Uncomment above command and define your args if necessary
|
## Uncomment above command and define your args if necessary
|
||||||
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
|
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
|
||||||
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
|
## Uncomment this section and the libretranslate_api_keys volume if you want to backup your API keys
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.11.9-slim-bullseye as builder
|
FROM python:3.11.9-slim-bullseye AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue