chore: initial commit

This commit is contained in:
albertfj114
2026-03-29 22:02:22 -04:00
commit d9c9758c76
12 changed files with 685 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
# HomeAI Kit — Extras Stack (LibreTranslate + Redis)
# Optional services for translation and caching.
#
# Setup:
# docker network create homeai-net # once, if not already created
# docker compose up -d
#
# LibreTranslate API: http://localhost:5000
# Redis: localhost:6379
services:
libretranslate:
image: libretranslate/libretranslate:latest
container_name: homeai-libretranslate
ports:
- "${LIBRETRANSLATE_PORT:-5000}:5000"
environment:
LT_LOAD_ONLY: ${LT_LOAD_ONLY:-en,es,fr,de}
volumes:
- libretranslate_data:/home/libretranslate/.local
healthcheck:
test: ["CMD-SHELL", "python3 -c \"import urllib.request; urllib.request.urlopen('http://localhost:5000/languages')\""]
interval: 30s
timeout: 10s
retries: 5
start_period: 120s
restart: unless-stopped
networks:
- homeai-net
redis:
image: redis:7-alpine
container_name: homeai-redis
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
networks:
- homeai-net
volumes:
libretranslate_data:
redis_data:
networks:
homeai-net:
external: true