修改容器化的配置

This commit is contained in:
孙小云 2026-01-14 19:42:39 +08:00
parent b89103f9b3
commit 93c6ad4747
4 changed files with 11 additions and 9 deletions

View File

@ -47,7 +47,6 @@ services:
- "6379:6379" - "6379:6379"
volumes: volumes:
- ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf - ./redis/conf/redis.conf:/home/ruoyi/redis/redis.conf
- ./redis/data:/data
command: redis-server /home/ruoyi/redis/redis.conf command: redis-server /home/ruoyi/redis/redis.conf
ruoyi-nginx: ruoyi-nginx:
container_name: ruoyi-nginx container_name: ruoyi-nginx

View File

@ -3,11 +3,17 @@ FROM registry.t-aaron.com/redis:latest
# author # author
MAINTAINER ruoyi MAINTAINER ruoyi
# 创建用户和组
RUN groupadd -r ruoyi && useradd -r -g ruoyi ruoyi
# 挂载目录 # 挂载目录
VOLUME /home/ruoyi/redis VOLUME /home/ruoyi/redis
# 创建目录 # 创建目录并设置权限
RUN mkdir -p /home/ruoyi/redis RUN mkdir -p /home/ruoyi/redis && chown -R ruoyi:ruoyi /home/ruoyi/redis && chmod -R 755 /home/ruoyi/redis
# 指定路径 # 指定路径
WORKDIR /home/ruoyi/redis WORKDIR /home/ruoyi/redis
# 复制conf文件到路径 # 复制conf文件到路径
COPY ./conf/redis.conf /home/ruoyi/redis/redis.conf COPY ./conf/redis.conf /home/ruoyi/redis/redis.conf
# 切换到ruoyi用户
USER ruoyi

View File

@ -1,12 +1,9 @@
# 端口配置
RTMP_PORT=1935 RTMP_PORT=1935
HTTP_PORT=8080 HTTP_PORT=9090
HTTPS_PORT=8443 HTTPS_PORT=8443
RTSP_PORT=8554 RTSP_PORT=8554
RTP_TCP_PORT=10000 RTP_TCP_PORT=10000
RTP_UDP_PORT=10000 RTP_UDP_PORT=10000
WEBRTC_UDP_PORT1=8000 WEBRTC_UDP_PORT1=8000
WEBRTC_UDP_PORT2=9000 WEBRTC_UDP_PORT2=9000
# 重启策略
RESTART_POLICY=unless-stopped RESTART_POLICY=unless-stopped

View File

@ -1,7 +1,7 @@
# 此镜像为github持续集成自动编译推送跟代码(master分支)保持最新状态 # 此镜像为github持续集成自动编译推送跟代码(master分支)保持最新状态
services: services:
zlmediakit: zlmediakit:
image: registry.t-aaron.com/zlmediakit/zlmediakit image: registry.t-aaron.com/zlmediakit/zlmediakit:Release.latest
container_name: zlmediakit container_name: zlmediakit
restart: unless-stopped restart: unless-stopped
ports: ports: