-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 2.06 KB
/
docker-compose.yml
File metadata and controls
83 lines (79 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
shelfd:
build:
context: .
dockerfile: Dockerfile
container_name: shelfd
depends_on:
flaresolverr:
condition: service_healthy
environment:
DATABASE_URL: sqlite:///data/opds.db?mode=rwc
BIND_ADDR: 0.0.0.0:7451
ARCHIVE_BASE: ${ARCHIVE_URL:-http://localhost:8080}
ARCHIVE_URLS: ${ARCHIVE_URLS:-${ARCHIVE_URL:-http://localhost:8080}}
ARCHIVE_NAME: Archive
APP_NAME: shelfd
METADATA_BASE_URL: https://openlibrary.org
FLARESOLVERR_URL: http://flaresolverr:8191
FLARESOLVERR_SESSION: shelfd-session
RUST_LOG: info,shelfd=debug
SEARCH_CACHE_TTL_SECS: 7200
BOOK_CACHE_TTL_SECS: 172800
LINK_CACHE_TTL_SECS: 172800
LINK_FAILURE_TTL_SECS: 300
CACHE_CLEANUP_INTERVAL_SECS: 3600
SEARCH_RESULT_LIMIT: 10
COVER_LOOKUP_LIMIT: 12
INLINE_INFO_CONCURRENCY: 25
COVER_LOOKUP_CONCURRENCY: 12
SEARCH_PREWARM_COUNT: 10
UPSTREAM_RETRY_ATTEMPTS: 1
UPSTREAM_RETRY_BACKOFF_MS: 50
ports:
- "7451:7451"
networks:
- backend
volumes:
- shelfd_data:/data
restart: unless-stopped
develop:
watch:
- action: rebuild
path: Cargo.toml
- action: rebuild
path: ./src
flaresolverr:
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: flaresolverr
environment:
LOG_LEVEL: info
LOG_HTML: "false"
CAPTCHA_SOLVER: none
TZ: UTC
MAX_CONCURRENT_SESSIONS: 1
MAX_PRELAUNCHED_CONTEXTS: 1
LAUNCH_OPTIONS: >
--disable-gpu
--no-sandbox
--disable-dev-shm-usage
--single-process
--disable-extensions
--disable-background-networking
--disable-sync
--no-zygote
healthcheck:
test: ["CMD", "curl", "-fs", "http://127.0.0.1:8191/health"]
interval: 15s
timeout: 5s
retries: 10
start_period: 20s
networks:
- backend
restart: unless-stopped
mem_limit: 512m
networks:
backend:
driver: bridge
volumes:
shelfd_data: