Skip to content

Commit

Permalink
adding language tool
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Jun 11, 2024
1 parent 63a27da commit 405bef7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions utilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ networks:
volumes:
portainer_data:
driver: local
languagetool:
driver: local

services:
dashy:
Expand Down Expand Up @@ -170,6 +172,45 @@ services:
- "traefik.http.routers.ping-secure.tls.certresolver=${DNS}"
- "traefik.http.routers.ping-secure.middlewares=forward-auth"

languagetool:
image: meyay/languagetool
container_name: languagetool
restart: always
networks:
- web
env_file:
- ./secrets/homelab.env
cap_drop:
- ALL
cap_add:
- CAP_SETUID
- CAP_SETGID
- CAP_CHOWN
security_opt:
- no-new-privileges
ports:
- 8010:8010
environment:
download_ngrams_for_langs: en
langtool_languageModel: /ngrams
langtool_fasttextModel: /fasttext/lid.176.bin
volumes:
- languagetool/ngrams:/ngrams
- languagetool/fasttext:/fasttext
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.ping.entrypoints=http"
- "traefik.http.routers.ping.rule=Host(`ping.${DOMAIN}`) || Host(`smokeping.${DOMAIN}`) "
- "traefik.http.middlewares.ping-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.ping.middlewares=ping-https-redirect"
- "traefik.http.routers.ping-secure.entrypoints=https"
- "traefik.http.routers.ping-secure.rule=Host(`ping.${DOMAIN}`) || Host(`smokeping.${DOMAIN}`) "
- "traefik.http.routers.ping-secure.tls=true"
- "traefik.http.routers.ping-secure.tls.certresolver=${DNS}"
- "traefik.http.routers.ping-secure.middlewares=forward-auth"

watchtower:
image: containrrr/watchtower
container_name: watchtower
Expand Down

0 comments on commit 405bef7

Please sign in to comment.