代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。