-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
122 lines (114 loc) · 3.21 KB
/
docker-compose.dev.yml
File metadata and controls
122 lines (114 loc) · 3.21 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
services:
typetype:
image: ghcr.io/priveetee/typetype-beta:latest
ports:
- "18082:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- typetype-server
restart: unless-stopped
typetype-server:
image: ghcr.io/priveetee/typetype-server-beta:latest
ports:
- "18080:8080"
env_file: .env
environment:
DOWNLOADER_SERVICE_URL: http://typetype-downloader:18093
depends_on:
postgres-init:
condition: service_completed_successfully
dragonfly:
condition: service_started
typetype-token:
condition: service_started
typetype-downloader:
condition: service_started
restart: unless-stopped
typetype-downloader:
image: ghcr.io/priveetee/typetype-downloader-beta:latest
ports:
- "19093:18093"
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"
UPLOAD_CONCURRENCY: "2"
MAX_QUEUE_SIZE: "100"
JOB_TTL_SECONDS: "600"
YTDLP_BIN: yt-dlp
YTDLP_TIMEOUT_SECONDS: "120"
ENABLE_TRANSCODE: "false"
S3_ENDPOINT: http://garage:3900
S3_REGION: garage
S3_BUCKET: typetype-downloads
S3_ACCESS_KEY: ${DOWNLOADER_S3_ACCESS_KEY}
S3_SECRET_KEY: ${DOWNLOADER_S3_SECRET_KEY}
S3_ARTIFACT_TTL_SECONDS: "7200"
TOKEN_SERVICE_URL: http://typetype-token:8081
depends_on:
postgres-init:
condition: service_completed_successfully
dragonfly:
condition: service_started
garage:
condition: service_started
typetype-token:
condition: service_started
restart: unless-stopped
typetype-token:
image: ghcr.io/priveetee/typetype-token:latest
ports:
- "18081:8081"
init: true
ipc: host
environment:
- NODE_ENV=production
restart: unless-stopped
postgres:
image: postgres:17
environment:
POSTGRES_DB: typetype
POSTGRES_USER: typetype
POSTGRES_PASSWORD: typetype
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
postgres-init:
image: postgres:17
depends_on:
postgres:
condition: service_started
environment:
PGPASSWORD: typetype
command:
- /bin/sh
- -ec
- |
until pg_isready -h postgres -U typetype -d typetype; do sleep 1; done
EXISTS=$$(psql -h postgres -U typetype -d typetype -tAc "SELECT 1 FROM pg_database WHERE datname='typetype_downloader'")
if [ "$$EXISTS" != "1" ]; then
psql -h postgres -U typetype -d typetype -c "CREATE DATABASE typetype_downloader"
fi
restart: "no"
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly:latest
ulimits:
memlock: -1
restart: unless-stopped
garage:
image: dxflrs/garage:v2.2.0
volumes:
- ./garage.toml:/etc/garage.toml:ro
- garage_meta:/var/lib/garage/meta
- garage_data:/var/lib/garage/data
restart: unless-stopped
volumes:
postgres_data:
garage_meta:
garage_data: