platform-codebase/tools/nightcrawler/docker-compose.yml

48 lines
1.1 KiB
YAML

services:
nightcrawler-postgres:
image: postgres:16-alpine
container_name: nightcrawler-postgres
ports:
- "25460:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nightcrawler
volumes:
- nightcrawler-pgdata:/var/lib/postgresql/data
- ./docker/init-postgres.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
nightcrawler-redis:
image: redis:7-alpine
container_name: nightcrawler-redis
ports:
- "26399:6379"
volumes:
- nightcrawler-redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
tor-proxy:
image: zhaowde/rotating-tor-http-proxy
container_name: nightcrawler-tor
ports:
- "3128:3128"
- "4444:4444"
environment:
TOR_INSTANCES: 10
TOR_REBUILD_INTERVAL: 1800
restart: unless-stopped
volumes:
nightcrawler-pgdata:
nightcrawler-redis-data: