haunter/container-compose.yml

37 lines
781 B
YAML

---
version: '3'
services:
driver:
image: docker.io/selenium/standalone-firefox
environment:
- "SE_START_XVFB=false"
- "SE_NODE_OVERRIDE_MAX_SESSIONS=true"
- "SE_NODE_MAX_SESSIONS=${HAUNTER_MAX_SESSIONS:-5}"
ports:
- '4444:4444'
web:
image: docker.io/nginx
ports:
- "${HAUNTER_HTTP_PORT:-8080}:80"
volumes:
- results:/usr/share/nginx/html:ro
watcher:
build:
context:
./
image: registry.burntworld.ca/v/haunter:latest
environment:
- "HAUNTER_DRIVER_URL=${HAUNTER_DRIVER_URL:-http://driver:4444}"
depends_on:
- driver
volumes:
- results:/var/lib/haunter/results.d
- jobs:/var/lib/haunter/jobs.d
- conf:/etc/haunter
volumes:
results:
jobs:
conf: