-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (70 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
73 lines (70 loc) · 1.95 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
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: typetype
POSTGRES_PASSWORD: typetype
POSTGRES_DB: typetype_downloader
ports:
- "55432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U typetype -d typetype_downloader"]
interval: 5s
timeout: 3s
retries: 30
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly:latest
ports:
- "56379:6379"
garage:
image: dxflrs/garage:v2.2.0
ports:
- "3900:3900"
- "3901:3901"
- "3902:3902"
- "3903:3903"
volumes:
- ./garage.toml:/etc/garage.toml:ro
- ./data/garage/meta:/var/lib/garage/meta
- ./data/garage/data:/var/lib/garage/data
typetype-downloader:
build: .
environment:
HTTP_PORT: "18093"
DB_URL: jdbc:postgresql://postgres:5432/typetype_downloader
DB_USER: typetype
DB_PASSWORD: typetype
REDIS_HOST: dragonfly
REDIS_PORT: "6379"
REDIS_QUEUE_KEY: downloader:queue
MAX_CONCURRENT_WORKERS: "2"
MAX_QUEUE_SIZE: "100"
JOB_TTL_SECONDS: "600"
YTDLP_BIN: yt-dlp
YTDLP_TIMEOUT_SECONDS: "120"
YTDLP_CONCURRENT_FRAGMENTS: "1"
YTDLP_RETRIES: "10"
YTDLP_FRAGMENT_RETRIES: "10"
YTDLP_SOCKET_TIMEOUT_SECONDS: "30"
YTDLP_HTTP_CHUNK_SIZE: ""
YTDLP_EXTERNAL_DOWNLOADER: ""
YTDLP_EXTERNAL_DOWNLOADER_ARGS: ""
AUDIO_PASSTHROUGH_DEFAULT: "false"
TOKEN_CACHE_TTL_SECONDS: "600"
ENABLE_TRANSCODE: "false"
S3_ENDPOINT: http://garage:3900
S3_REGION: garage
S3_BUCKET: typetype-downloads
S3_ACCESS_KEY: demo-access-key
S3_SECRET_KEY: demo-secret-key
S3_ARTIFACT_TTL_SECONDS: "7200"
TOKEN_SERVICE_URL: http://typetype-token:8081
ports:
- "18093:18093"
depends_on:
postgres:
condition: service_healthy
dragonfly:
condition: service_started
garage:
condition: service_started