mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
53 lines
1.0 KiB
YAML
53 lines
1.0 KiB
YAML
services:
|
|
redis:
|
|
image: redis:8.8-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- redis_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
trawl:
|
|
image: ghcr.io/germondai/trawl:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT:-8191}:8191"
|
|
environment:
|
|
- REDIS_URL=redis://redis:6379
|
|
- BROWSER_POOL_SIZE=${BROWSER_POOL_SIZE:-3}
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
shm_size: 1gb
|
|
dns:
|
|
- 1.1.1.1
|
|
- 8.8.8.8
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-sf", "http://localhost:8191/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 90s
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/web/Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT_WEB:-3000}:80"
|
|
|
|
docs:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/docs/Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT_DOCS:-3001}:80"
|
|
|
|
volumes:
|
|
redis_data:
|