From 21eb79a845d02ad599e1f5299d6090b626305c53 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Fri, 13 Mar 2026 15:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90help=E3=80=91fix(docker-compose):=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=95=9C=E5=83=8F=E7=89=88=E6=9C=AC=E4=B8=BA?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=89=88=E6=9C=AC=E5=8F=B7=E5=B9=B6=E6=96=B0?= =?UTF-8?q?=E5=A2=9Enginx=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/runtime/session/readme.md | 10 -------- help/docker/docker-compose.yml | 37 +++++++++++++++--------------- help/docker/{ => nginx}/vhost.conf | 0 3 files changed, 18 insertions(+), 29 deletions(-) delete mode 100644 crmeb/runtime/session/readme.md rename help/docker/{ => nginx}/vhost.conf (100%) diff --git a/crmeb/runtime/session/readme.md b/crmeb/runtime/session/readme.md deleted file mode 100644 index 08e188860..000000000 --- a/crmeb/runtime/session/readme.md +++ /dev/null @@ -1,10 +0,0 @@ -# session目录说明 - -此目录用于存储用户会话数据文件,包括: - -- 用户登录状态信息 -- 临时会话变量 -- CSRF令牌数据 -- 表单令牌数据 - -这些文件对维持用户会话状态至关重要,系统会自动清理过期会话文件。 \ No newline at end of file diff --git a/help/docker/docker-compose.yml b/help/docker/docker-compose.yml index fa0229985..e6caaf3c5 100644 --- a/help/docker/docker-compose.yml +++ b/help/docker/docker-compose.yml @@ -2,8 +2,7 @@ services: # mysql 容器 mysql: container_name: crmeb_mysql - image: ccr.ccs.tencentyun.com/crmebmysql/mysql57:latest - platform: linux/amd64 # 兼容 arm64 架构 + image: ccr.ccs.tencentyun.com/crmebky_php/mysql:v8.0.45 ports: - "33061:3306" environment: @@ -13,8 +12,7 @@ services: MYSQL_PASSWORD: 123456 MYSQL_DATABASE: crmeb volumes: - # - ./mysql/my.cnf:/etc/mysql/my.cnf - - ./mysql/data:/var/lib/mysql #挂载数据目录到本地 + - ./mysql/data:/var/lib/mysql - ./mysql/log:/var/log/mysql networks: app_net: @@ -22,7 +20,7 @@ services: # redis 容器 redis: container_name: crmeb_redis - image: ccr.ccs.tencentyun.com/crmebredis/redis:latest + image: ccr.ccs.tencentyun.com/crmebky_php/redis:v8.6.1 ports: - "63791:6379" environment: @@ -34,56 +32,57 @@ services: # php 容器 phpfpm: container_name: crmeb_php - image: ccr.ccs.tencentyun.com/crmebphp/crmebky:latest + image: ccr.ccs.tencentyun.com/crmebky_php/php:v7.4 restart: always environment: TZ: Asia/Shanghai - # 数据库配置环境变量 MYSQL_HOST_IP: crmeb_mysql MYSQL_PORT: "3306" MYSQL_USER: crmeb MYSQL_PASSWORD: 123456 MYSQL_DATABASE: crmeb - # Redis配置环境变量 REDIS_HOST_IP: crmeb_redis REDIS_PORT: "6379" REDIS_DATABASE: "0" REDIS_PASSWORD: 123456 - # 应用配置环境变量 APP_DEBUG: true DEFAULT_TIMEZONE: Asia/Shanghai + # ports: + # - "9000:9000" + # - "40001:40001" + # - "40002:40002" + # - "40003:40003" working_dir: /var/www volumes: - - ../../crmeb:/var/www #程序运行目录 - - ../../crmeb/runtime:/var/www/runtime #程序运行时目录 + - ../../crmeb:/var/www + - ../../crmeb/runtime:/var/www/runtime networks: app_net: ipv4_address: 192.168.10.90 # nginx 容器 nginx: container_name: crmeb_nginx - image: ccr.ccs.tencentyun.com/crmebnginx/nginx:latest + image: ccr.ccs.tencentyun.com/crmebky_php/nginx:v1.29.6 restart: always ports: - "8011:80" - # 依赖关系 先跑php depends_on: - phpfpm environment: TZ: Asia/Shanghai working_dir: /var/www volumes_from: - - phpfpm #继承phpfpm挂载目录 + - phpfpm volumes: - - ./vhost.conf:/etc/nginx/conf.d/default.conf + - ./nginx/vhost.conf:/etc/nginx/conf.d/default.conf - ./nginx/log:/etc/nginx/log networks: app_net: ipv4_address: 192.168.10.80 -networks: #网络配置 - app_net: #网络名称 +networks: + app_net: driver: bridge - ipam: #网络配置 + ipam: driver: default config: - - subnet: 192.168.10.0/24 #IP区间 \ No newline at end of file + - subnet: 192.168.10.0/24 \ No newline at end of file diff --git a/help/docker/vhost.conf b/help/docker/nginx/vhost.conf similarity index 100% rename from help/docker/vhost.conf rename to help/docker/nginx/vhost.conf