独立部署集群版
企业版本
企业版本需配置license才可以使用。
安装前置准备
| 软件 | 版本 | 说明 |
|---|---|---|
| docker | 24.x | 24~25 |
| redis | 6.x | 可以直接使用docker启动 |
| mariadb | 10.x | mariadb是mysql的分叉版本,提供高性能优化 |
准备配置文件
$PWD/config.yaml
```yaml redis: address: local-redis:6379
license: data: |- ecaf98a247ae9788fd224f8546e85f0425174912 631f5eb29b25235323f71eb0ca617b5d4250992c ecaf98a247ae9788fd224f8546e85f0425174912 631f5eb29b25235323f71eb0ca617b5d4250992c
db: user: golive password: golive sid: golive port: 3306 host: mysql57
server: host: golive.my-corp.com # 你希望对外服务的地址
features: oauth: server: oauth.my-corp.com client_id: s6BhdRkqt3 chat: enabled: false cdn: push_host: some-push.cdn.com/app/stream auth: md5 ```
使用docker-compose启动
docker-compose.yml
shell
docker-compose up
```yaml version: "3"
services: traefik: image: traefik:v2.7 ports: - "80:80" - "443:443" volumes: - golive: image: registry.cn-huhehaote.aliyuncs.com/moryaden/golive:latest volumes: - ./data:/data - ./config.yaml:/etc/golive/config.yaml
redis: image: redis:4 links: - golive
mysql: image: mariadb:10.8.3 links: - golive environment: - MYSQL_ROOT_PASSWORD=abcdef - TZ=Asia/Shanghai ```