-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (69 loc) · 2.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (69 loc) · 2.39 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
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: ${DB_USER:-typetype}
POSTGRES_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD is required}
POSTGRES_DB: ${DB_NAME:-typetype_downloader}
ports:
- "55432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 3s
retries: 30
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly:v1.38.0
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:
context: .
dockerfile: Dockerfile.wolfi
environment:
HTTP_PORT: "18093"
PUBLIC_BASE_URL: ${PUBLIC_BASE_URL:-http://localhost:18093}
TYPETYPE_API_BASE: ${TYPETYPE_API_BASE:-http://host.docker.internal:18080}
DB_URL: jdbc:postgresql://postgres:5432/${DB_NAME:-typetype_downloader}
DB_USER: ${DB_USER:-typetype}
DB_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD is required}
REDIS_HOST: ${REDIS_HOST:-dragonfly}
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_QUEUE_KEY: ${REDIS_QUEUE_KEY:-downloader:queue}
MAX_CONCURRENT_WORKERS: ${MAX_CONCURRENT_WORKERS:-2}
MAX_QUEUE_SIZE: ${MAX_QUEUE_SIZE:-100}
JOB_TTL_SECONDS: ${JOB_TTL_SECONDS:-600}
DOWNLOAD_WORKERS: ${DOWNLOAD_WORKERS:-8}
DOWNLOAD_CHUNK_SIZE: ${DOWNLOAD_CHUNK_SIZE:-10485760}
DOWNLOAD_RANGE_MODE: ${DOWNLOAD_RANGE_MODE:-query}
MUXER: ${MUXER:-avformat}
STORAGE_BACKEND: ${STORAGE_BACKEND:-s3}
S3_ENDPOINT: ${S3_ENDPOINT:-http://garage:3900}
S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://localhost:3900}
S3_REGION: ${S3_REGION:-garage}
S3_BUCKET: ${S3_BUCKET:-typetype-downloads}
S3_ACCESS_KEY: ${S3_ACCESS_KEY:?S3_ACCESS_KEY is required}
S3_SECRET_KEY: ${S3_SECRET_KEY:?S3_SECRET_KEY is required}
S3_ARTIFACT_TTL_SECONDS: ${S3_ARTIFACT_TTL_SECONDS:-7200}
ports:
- "18093:18093"
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
dragonfly:
condition: service_started
garage:
condition: service_started