From 9ef1cf11ec9e9758b289b77af248c79206eaffb6 Mon Sep 17 00:00:00 2001 From: Luyus <148471006+xinghenLuyus@users.noreply.github.com> Date: Sun, 4 Jan 2026 17:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0compose=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 17 +++++++++++++++++ nginx.conf | 5 ----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7ed8b65 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.8' + +services: + coin-portal: + build: + context: . + dockerfile: Dockerfile + container_name: coin-portal + ports: + - "10081:80" + restart: unless-stopped + healthcheck: + test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/index.html"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s diff --git a/nginx.conf b/nginx.conf index 405180c..95ded6d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -10,11 +10,6 @@ server { try_files $uri $uri/ /index.html; } - # 后台管理系统代理 (如果需要) - # location /admin/ { - # proxy_pass http://coin-manager:80/; - # } - # 静态资源缓存 location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { expires 30d;