-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev-mirror.yml
More file actions
108 lines (108 loc) · 3.61 KB
/
docker-compose.dev-mirror.yml
File metadata and controls
108 lines (108 loc) · 3.61 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
services:
typetype:
image: ghcr.io/priveetee/typetype-beta:beta
pull_policy: always
ports: ["28082:80"]
volumes: ["./deploy/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"]
depends_on: [typetype-server, typetype-downloader]
restart: unless-stopped
typetype-server:
image: ghcr.io/priveetee/typetype-server-beta:beta
pull_policy: always
ports: ["28080:8080"]
environment:
DATABASE_URL: jdbc:postgresql://postgres:5432/typetype
DATABASE_USER: typetype
DATABASE_PASSWORD: typetype
DRAGONFLY_URL: redis://dragonfly:6379
ALLOWED_ORIGINS: http://localhost:28082,http://127.0.0.1:28082
SUBTITLE_SERVICE_URL: http://typetype-token:8081
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:beta
pull_policy: always
ports: ["28093: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"
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: GK111111111111111111111111
S3_SECRET_KEY: "1111111111111111111111111111111111111111111111111111111111111111"
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
pull_policy: always
ports: ["28081: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
healthcheck:
test: ["CMD-SHELL", "pg_isready -U typetype -d typetype"]
interval: 5s
timeout: 3s
retries: 30
volumes: ["postgres_data:/var/lib/postgresql/data"]
restart: unless-stopped
postgres-init:
image: postgres:17
depends_on:
postgres: { condition: service_healthy }
environment: { PGPASSWORD: typetype }
command:
- /bin/sh
- -ec
- |
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
ports: ["23900:3900", "23903:3903"]
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: