Files
achmad bfa66d8102 fix: restore adaptive HTTP (direct first, FS fallback) with session
Re-enables the direct-then-FS approach removed earlier due to TLS
fingerprint mismatch. With FS sessions configured, the fallback path
is fast after the first request per domain (Chrome caches cf_clearance).
Non-Cloudflare sites still benefit from direct HTTP speed.
2026-05-14 21:28:11 +07:00

62 lines
1.4 KiB
YAML
Executable File

services:
dev:
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /workspace
command: air -c .air.toml
tty: true
stdin_open: true
volumes:
- ./:/workspace
- go_mod_cache:/go/pkg/mod
- go_build_cache:/root/.cache/go-build
ports:
- "${ADDR:-8080}:8080"
environment:
FLARESOLVERR_SESSION: ${FLARESOLVERR_SESSION:-goyomi}
depends_on:
postgres:
condition: service_healthy
flaresolverr:
condition: service_started
networks:
- goyomi_dev
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_dev_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
networks:
- goyomi_dev
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
restart: unless-stopped
environment:
LOG_LEVEL: ${FLARESOLVERR_LOG_LEVEL}
# FLARESOLVERR_SESSION: ${FLARESOLVERR_SESSION:-goyomi}
ports:
- "8191:8191"
networks:
- goyomi_dev
networks:
goyomi_dev:
driver: bridge
volumes:
go_mod_cache:
go_build_cache:
postgres_dev_data: