created flaresolverr
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# FlareSolverr Docker Compose Environment Variables
|
||||
|
||||
# Image version tag (default: latest)
|
||||
FLARESOLVERR_VERSION=latest
|
||||
|
||||
# Timezone (default: America/Los_Angeles)
|
||||
FLARESOLVERR_TZ=America/Los_Angeles
|
||||
|
||||
# Host port to expose the FlareSolverr API (default: 8191)
|
||||
FLARESOLVERR_PORT=8191
|
||||
|
||||
# Log verbosity level: info, debug, warning, error (default: info)
|
||||
FLARESOLVERR_LOG_LEVEL=info
|
||||
|
||||
# Captcha solver to use; set to none if not using one (default: none)
|
||||
FLARESOLVERR_CAPTCHA_SOLVER=none
|
||||
|
||||
# NFS server hostname or IP address
|
||||
FLARESOLVERR_NFS_SERVER=
|
||||
|
||||
# NFS device path for FlareSolverr config storage (e.g. :/mnt/pool/flaresolverr/config)
|
||||
FLARESOLVERR_NFS_DEVICE=
|
||||
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
app:
|
||||
image: ghcr.io/flaresolverr/flaresolverr:${FLARESOLVERR_VERSION:-latest}
|
||||
container_name: flaresolverr
|
||||
environment:
|
||||
- LOG_LEVEL=${FLARESOLVERR_LOG_LEVEL:-info}
|
||||
- LOG_HTML=false
|
||||
- CAPTCHA_SOLVER=${FLARESOLVERR_CAPTCHA_SOLVER:-none}
|
||||
- TZ=${FLARESOLVERR_TZ:-America/Los_Angeles}
|
||||
volumes:
|
||||
- flaresolverr-config:/config
|
||||
ports:
|
||||
- ${FLARESOLVERR_PORT:-8191}:8191
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8191/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 512m
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
flaresolverr-config:
|
||||
name: flaresolverr-config
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: nfs
|
||||
o: "addr=${FLARESOLVERR_NFS_SERVER},rw,noatime,rsize=65536,wsize=65536,timeo=600,nfsvers=4"
|
||||
device: "${FLARESOLVERR_NFS_DEVICE}"
|
||||
Reference in New Issue
Block a user