mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 07:39:39 +02:00
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:
parent
feeebfb7c4
commit
68004aafa5
1 changed files with 30 additions and 0 deletions
|
|
@ -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: .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue