mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
65285599f7
Here's the updated configuration with the libretranslate service explicitly updated
15 lines
546 B
YAML
15 lines
546 B
YAML
libretranslate:
|
|
image: libretranslate/libretranslate:v1.6.2
|
|
restart: unless-stopped
|
|
volumes:
|
|
- lt-data:/home/libretranslate/.local
|
|
environment:
|
|
ENABLE_TRANSLATIONS: 'true' # Example addition: Enable translation API
|
|
ALLOWED_LANGUAGES: 'en,es,fr,de,pt' # Example: Restrict languages to English, Spanish, French, German, and Portuguese
|
|
PORT: '5000' # Confirm explicit port setting
|
|
ports:
|
|
- "127.0.0.1:5000:5000" # Bind to localhost
|
|
networks:
|
|
- external_network
|
|
- internal_network
|