GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — unstream/docker-compose.yml at main · amiralibg/unstream

Expand file tree

/

docker-compose.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
98 lines (90 loc) · 4.21 KB
/

docker-compose.yml

Copy path

File metadata and controls

98 lines (90 loc) · 4.21 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# Unstream, self-hosted: docker compose up -d → http://localhost:8080
#
# Works on a fresh clone with no .env. The defaults here are not the ones in
# the code — the code protects a server shared with strangers, this file
# assumes your machine and your music. See compose.dokploy.yml for the other
# case, and docs/DESIGN.md for why they differ.
services:
frontend:
# Pulled if published, built from source if not. `--build` forces local.
image: ghcr.io/amiralibg/unstream-frontend:latest
build: ./frontend
restart: unless-stopped
environment:
# Language a first-time visitor gets: `fa` or `en`. Read at container
# start, not baked into the bundle, so changing it is an edit and a
# `docker compose up -d` — no rebuild, even on the prebuilt images.
# Visitors can switch languages themselves regardless, and their choice
# is what gets remembered.
- UNSTREAM_DEFAULT_LOCALE=${UNSTREAM_DEFAULT_LOCALE:-fa}
ports:
# The only port anything needs: nginx serves the app and proxies /api.
- "${UNSTREAM_PORT:-8080}:80"
depends_on:
- api
logging: &logging
driver: json-file
options:
max-size: 10m
max-file: "3"
# Mints the proof-of-origin tokens YouTube asks datacenter IPs for. Free,
# keyless, stateless. From a home connection you almost certainly don't need
# it; it costs nothing idle and saves a bad afternoon if that ever changes.
pot-provider:
image: brainicism/bgutil-ytdlp-pot-provider:latest
restart: unless-stopped
logging: *logging
api:
image: ghcr.io/amiralibg/unstream-api:latest
build: ./backend
restart: unless-stopped
depends_on:
- pot-provider
environment:
# 0 = keep downloads forever, no disk ceiling. The code defaults to 24h
# and 20 GB, which is right for a public server and wrong for a folder
# you browse.
- DOWNLOADS_TTL_HOURS=${DOWNLOADS_TTL_HOURS:-0}
- MAX_DOWNLOADS_GB=${MAX_DOWNLOADS_GB:-0}
# The per-caller limits price one stranger's share of a server. There
# are no strangers here. Turn this back on for anything reachable by
# someone you don't know — wrong admin tokens stay charged either way.
- RATE_LIMITS_ENABLED=${RATE_LIMITS_ENABLED:-false}
# Different class: these bound threads and memory, not anyone's share.
# 0 = no limit, which is what a 900-track discography needs.
- MAX_ACTIVE_JOBS_PER_CLIENT=${MAX_ACTIVE_JOBS_PER_CLIENT:-0}
- MAX_TRACKS_PER_JOB=${MAX_TRACKS_PER_JOB:-0}
# Raising this finishes a long album sooner and gets you bot-checked
# sooner, in that order.
- DOWNLOAD_WORKERS=${DOWNLOAD_WORKERS:-3}
# Owner of everything written to DOWNLOADS_DIR. 1001 is the image's own
# user; use `id -u` / `id -g` if you want to open those files yourself.
# Docker Desktop maps ownership for you, so macOS and Windows can skip it.
- PUID=${PUID:-1001}
- PGID=${PGID:-1001}
# Without the solver yt-dlp has a runtime and nothing to run in it, and
# YouTube returns videos with no audio streams. Empty string refuses it.
- YTDLP_REMOTE_COMPONENTS=${YTDLP_REMOTE_COMPONENTS-ejs:github}
- YTDLP_CACHE_DIR=/app/cache
- POT_PROVIDER_URL=${POT_PROVIDER_URL:-http://pot-provider:4416}
# Rarely needed at home. Setting it without mounting a file does
# nothing; see .env.example.
- YTDLP_COOKIEFILE=${YTDLP_COOKIEFILE:-}
# Off unless you set a token, and local either way — counted into a
# SQLite file below and read back only by /admin on this instance.
- ADMIN_TOKEN=${ADMIN_TOKEN:-}
- ANALYTICS_UTC_OFFSET_MINUTES=${ANALYTICS_UTC_OFFSET_MINUTES:-0}
- ANALYTICS_RETENTION_DAYS=${ANALYTICS_RETENTION_DAYS:-90}
volumes:
# A real folder, because the point of running this yourself is that the
# files are yours. Point it at an external disk or whatever your music
# player watches.
- ${DOWNLOADS_DIR:-./downloads}:/app/downloads
# Named volumes: nothing you would open by hand, and both only ever
# want to be where they were.
- analytics:/app/data
- ytdlp-cache:/app/cache
logging: *logging
volumes:
analytics:
ytdlp-cache:
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.