services:
moontv-core:
image: ghcr.io/senshinya/moontv:latest
container_name: moontv
restart: unless-stopped
ports:
- '3000:3000'
environment:
- USERNAME=admin
- PASSWORD=admin_password
- NEXT_PUBLIC_STORAGE_TYPE=redis
- REDIS_URL=redis://:password@host:6379/2
- NEXT_PUBLIC_ENABLE_REGISTER=true
networks:
- moontv-network
# 如需自定义配置,可挂载文件
# volumes:
# - ./config.json:/app/config.json:ro
# 如需持久化
# volumes:
# - ./data:/data
networks:
moontv-network:
external: true
name: 1panel-network