14 Star 94 Fork 0

浅夏/video_live_online

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
version: "3.7"
services:
nginx:
ports:
- 8080:8080
- 80:80
- 443:443
- 1935:1935
image: nginx/rtmp-hls:latest
restart: always
volumes:
- "/opt/video/nginx/log:/var/log/nginx"
- "/opt/video/nginx/website:/opt/nginx/website"
- "/opt/video/nginx/config/nginx.conf:/etc/nginx/nginx.conf"
- "/opt/video/nginx/hls:/opt/nginx/hls"
container_name: nginx
mysql:
ports:
- 3306:3306
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD : dengyunhu@123
MYSQL_DATABASE : video
MYSQL_USER : video
MYSQL_PASSWORD : video@123
MYSQL_HOME: /opt/mysql/home
volumes:
- "/opt/video/mysql/logs:/var/log/mysql"
- "/opt/video/mysql/data:/var/lib/mysql"
- "/etc/localtime:/etc/localtime"
# "/opt/video/mysql/init-sql:/docker-entrypoint-initdb.d" 初始化sql脚本
# "/opt/video/mysql/conf/my.cnf:/etc/mysql/my.cnf.ro"
container_name: mysql
redis:
ports:
- 6379:6379
image: redis:latest
restart: always
command: redis-server --requirepass video@123
volumes:
- "/opt/video/redis/redis.conf:/usr/local/redis/redis.conf"
- "/opt/video/redis/data:/data"
container_name: redis
video:
ports:
- 8081:8081
image: live/video:latest
restart: always
environment:
- "SPRING_PROFILES_ACTIVE=dev"
volumes:
- "/opt/video/app:/opt/video/app"
working_dir: /opt/video/app
cap_add:
- "SYS_PTRACE"
depends_on:
- mysql
- redis
- nginx
container_name: video
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/dyh1183/video_live_online.git
git@gitee.com:dyh1183/video_live_online.git
dyh1183
video_live_online
video_live_online
master

搜索帮助