docker / build (push) Successful in 21s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
28 lines
1021 B
YAML
28 lines
1021 B
YAML
# grabber-ai + FlareSolverr. docker compose up -d (настройки — в .env, см. .env.example)
|
|
services:
|
|
grabber-ai:
|
|
image: ${DUB_IMAGE:-grabber-ai:local}
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${DUB_PUBLISH_PORT:-8000}:8000"
|
|
environment:
|
|
DUB_FLARESOLVERR_URL: ${DUB_FLARESOLVERR_URL-http://flaresolverr:8191}
|
|
DUB_API_TOKEN: ${DUB_API_TOKEN:-}
|
|
DUB_FETCH_TIMEOUT: ${DUB_FETCH_TIMEOUT:-60}
|
|
DUB_TORCH_THREADS: ${DUB_TORCH_THREADS:-}
|
|
# Образ без моделей (или чтобы подменить их без пересборки): раскомментируйте
|
|
# volumes:
|
|
# - ./models:/app/models:ro
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 3g
|
|
|
|
flaresolverr:
|
|
image: ghcr.io/flaresolverr/flaresolverr:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
LOG_LEVEL: info
|
|
# порт 8191 наружу не публикуется: доступен только контейнеру grabber-ai
|