From ebb49577dd0e06128beb0cbe2623fc01867af837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Thu, 25 Dec 2025 11:30:02 +0800 Subject: [PATCH] fix --- docker-compose.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ac7ba90..a7aa33f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,11 +4,11 @@ context: . dockerfile: Dockerfile container_name: emailbill - restart: unless-stopped + restart: always networks: - all_in ports: - - "14904:8080" + - 8080:8080 environment: - ASPNETCORE_ENVIRONMENT=Production - ASPNETCORE_URLS=http://+:8080 @@ -16,6 +16,20 @@ - /wd/apps/vols/emailbill/database:/app/database - /wd/apps/vols/emailbill/logs:/app/logs + nas_robot_proxy: + image: beevelop/nginx-basic-auth:v2023.10.1 + container_name: emailbill_proxy + restart: always + networks: + - all_in + ports: + - 14904:80 # 开放端口 + environment: + - TZ=Asia/Shanghai + - HTPASSWD=suncheng:$$apr1$$2QX32QHP$$HIGAbCuTt8jxdc4uDzNLI1 + - FORWARD_PORT=8080 + - FORWARD_HOST=emailbill + networks: all_in: external: true \ No newline at end of file