feat(infra): add mana-crawler Go service to docker-compose

Port 3023, PostgreSQL + Redis, concurrency 5.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-27 22:23:37 +01:00
parent feeebfb7c4
commit 68004aafa5

View file

@ -369,6 +369,36 @@ services:
retries: 3
start_period: 5s
mana-crawler:
build:
context: .
dockerfile: services/mana-crawler-go/Dockerfile
image: mana-crawler-go:local
container_name: mana-crawler
restart: always
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
TZ: Europe/Berlin
PORT: 3023
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-mana123}@postgres:5432/mana?sslmode=disable
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis123}
CRAWLER_USER_AGENT: "ManaCoreCrawler/1.0 (+https://mana.how/bot)"
QUEUE_CONCURRENCY: 5
ports:
- "3023:3023"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3023/health"]
interval: 60s
timeout: 5s
retries: 3
start_period: 5s
mana-media:
build:
context: .