2022-09-09 12:32:23 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
libretranslate:
|
|
|
|
container_name: libretranslate
|
2024-06-04 04:02:19 +00:00
|
|
|
image: libretranslate/libretranslate:v1.6.0
|
2022-09-09 12:32:23 +00:00
|
|
|
dns:
|
|
|
|
- ${DNS_IP}
|
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:5000
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
labels:
|
2023-06-10 15:29:03 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.libretranslate-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.libretranslate.loadbalancer.server.port: 5000
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.libretranslate-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.libretranslate-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.libretranslate-insecure.service: libretranslate
|
|
|
|
traefik.http.routers.libretranslate-insecure.middlewares: libretranslate-web-redirect
|
|
|
|
# Websecure
|
2022-09-09 12:32:23 +00:00
|
|
|
traefik.http.routers.libretranslate.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.libretranslate.entrypoints: websecure
|
|
|
|
traefik.http.routers.libretranslate.service: libretranslate
|
|
|
|
traefik.http.routers.libretranslate.tls.certresolver: myresolver
|
2023-06-10 15:29:03 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.libretranslate-local-insecure.rule: Host(`libretranslate.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.libretranslate-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.libretranslate-local-insecure.service: libretranslate
|
|
|
|
traefik.http.routers.libretranslate-local-insecure.middlewares: libretranslate-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.libretranslate-local.rule: Host(`libretranslate.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.libretranslate-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.libretranslate-local.service: libretranslate
|
|
|
|
traefik.http.routers.libretranslate-local.tls: true
|