2020-12-21 19:39:53 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
libretranslate:
|
|
|
|
container_name: libretranslate
|
2023-01-12 14:23:29 +01:00
|
|
|
build:
|
|
|
|
context: .
|
2023-01-31 15:53:03 +01:00
|
|
|
dockerfile: docker/Dockerfile
|
2020-12-21 19:39:53 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
2023-01-12 14:23:29 +01:00
|
|
|
- "5000:5000"
|
2023-01-15 22:20:47 +01:00
|
|
|
healthcheck:
|
2023-01-16 18:16:30 +01:00
|
|
|
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
|
2020-12-21 19:39:53 +01:00
|
|
|
## Uncomment above command and define your args if necessary
|
2022-07-15 13:22:04 +02:00
|
|
|
# command: --ssl --ga-id MY-GA-ID --req-limit 100 --char-limit 500
|
|
|
|
## Uncomment this section and the `volumes` section if you want to backup your API keys
|
|
|
|
# environment:
|
|
|
|
# - LT_API_KEYS_DB_PATH=/app/db/api_keys.db # Same result as `db/api_keys.db` or `./db/api_keys.db`
|
|
|
|
# volumes:
|
|
|
|
# - libretranslate_api_keys:/app/db/api_keys.db
|
|
|
|
|
|
|
|
# volumes:
|
2023-01-12 14:23:29 +01:00
|
|
|
# libretranslate_api_keys:
|