diff --git a/script/docker/deploy.sh b/script/docker/deploy.sh index 0c8f6c43..a4b053cc 100644 --- a/script/docker/deploy.sh +++ b/script/docker/deploy.sh @@ -27,15 +27,16 @@ port(){ ##放置挂载文件 mount(){ #挂载 nginx 配置文件 - if test ! -f "/docker/nginx/conf/nginx.conf" ;then - mkdir -p /docker/nginx/conf - cp nginx/nginx.conf /docker/nginx/conf/nginx.conf + if test ! -f "/docker/nginx/" ;then + mkdir -p /docker/nginx/ + cp nginx/* /docker/nginx/ fi #挂载 redis 配置文件 - if test ! -f "/docker/redis/conf/redis.conf" ;then - mkdir -p /docker/redis/conf - cp redis/redis.conf /docker/redis/conf/redis.conf + if test ! -f "/docker/redis/" ;then + mkdir -p /docker/redis/ + cp redis/* /docker/redis/ fi + chmod -R 777 /docker } #启动基础模块 diff --git a/script/docker/nginx/nginx.conf b/script/docker/nginx/conf/nginx.conf similarity index 100% rename from script/docker/nginx/nginx.conf rename to script/docker/nginx/conf/nginx.conf diff --git a/script/docker/redis/redis.conf b/script/docker/redis/conf/redis.conf similarity index 96% rename from script/docker/redis/redis.conf rename to script/docker/redis/conf/redis.conf index a07c9d21..72255c61 100644 --- a/script/docker/redis/redis.conf +++ b/script/docker/redis/conf/redis.conf @@ -1,5 +1,5 @@ # redis 密码 -# requirepass ruoyi123 +requirepass ruoyi123 # key 监听器配置 # notify-keyspace-events Ex diff --git a/script/docker/redis/data/README.md b/script/docker/redis/data/README.md new file mode 100644 index 00000000..fbc5474b --- /dev/null +++ b/script/docker/redis/data/README.md @@ -0,0 +1 @@ +数据目录 请执行 `chmod 777 /docker/redis/data` 赋予读写权限 否则将无法写入数据 \ No newline at end of file