From 87006bf6e967d08bdf4b2f2f4534703c3ea80917 Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 13 Jul 2023 13:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0docker=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 87e06aa..c8ac9ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com # 复制项目代码到容器内的 /app 目录 # 设置环境变量,指定端口号和主模块 -ENV PORT=8000 +ENV PORT=8006 ENV MODULE_NAME=my_fastapi_app.main:app # 暴露指定的端口 diff --git a/docker-compose.yml b/docker-compose.yml index dd44c76..6c42d61 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: volumes: - ../daily:/home/daily ports: - - "8001:8082" + - "8006:8006" networks: - app command: