https://github.com/MoonTechLab/LunaTV 拉取镜像

1
docker pull ghcr.io/moontechlab/lunatv:latest

配置环境

1
2
3
4
5
USERNAME=xxx
PASSWORD=xxx
NEXT_PUBLIC_STORAGE_TYPE=redis
REDIS_URL=rediss://xxx
NEXT_PUBLIC_ENABLE_REGISTER=true

端口3000 播放源

1
https://gist.githubusercontent.com/senshinya/5a5cb900dfa888fd61d767530f00fc48/raw/gistfile1.txt

 

Redis 存储

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
services:
moontv-core:
image: ghcr.io/moontechlab/lunatv:latest
container_name: moontv-core
restart: unless-stopped
ports:
- '3000:3000'
environment:
- USERNAME=admin
- PASSWORD=admin_password
- NEXT_PUBLIC_STORAGE_TYPE=redis
- REDIS_URL=redis://moontv-redis:6379
networks:
- moontv-network
depends_on:
- moontv-redis
moontv-redis:
image: redis:alpine
container_name: moontv-redis
restart: unless-stopped
networks:
- moontv-network
# 请开启持久化,否则升级/重启后数据丢失
volumes:
- ./data:/data
networks:
moontv-network:
driver: bridge

 

Upstash 存储

1
2
3
4
5
6
7
8
9
10
11
12
13
services:
moontv-core:
image: ghcr.io/moontechlab/lunatv:latest
container_name: moontv-core
restart: unless-stopped
ports:
- '3000:3000'
environment:
- USERNAME=admin
- PASSWORD=admin_password
- NEXT_PUBLIC_STORAGE_TYPE=upstash
- UPSTASH_URL={上面 https 开头的 HTTPS ENDPOINT}
- UPSTASH_TOKEN={上面的 TOKEN}