From f024176d48e4de101ea54c5dde0dcfa77a607469 Mon Sep 17 00:00:00 2001 From: Caijinglong Date: Wed, 25 Jun 2025 17:51:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caijinglong --- docker-compose.yaml | 7 ++++--- src/index.php | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 28fe9fe..969aa90 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,8 @@ version: '3.8' services: web: - image: common-nginx-fpm-alpine:latest + # image: common-nginx-fpm-alpine:latest + build: . container_name: ${PROJECT_NAME:-nginx-fpm-app} restart: unless-stopped ports: @@ -26,8 +27,8 @@ services: deploy: resources: limits: - memory: ${MEMORY_LIMIT:-512M} - cpus: '${CPU_LIMIT:-1.0}' + memory: ${MEMORY_LIMIT:-4096M} + cpus: '${CPU_LIMIT:-4.0}' healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/health"] interval: 30s diff --git a/src/index.php b/src/index.php index 7f5b466..3e8b995 100644 --- a/src/index.php +++ b/src/index.php @@ -115,7 +115,9 @@ $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown';

🔧 已安装扩展