From 27a44511d075359a34c6bd6765388e112a9f5490 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 29 Oct 2024 16:35:00 +0800 Subject: [PATCH] change port --- tailscale/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tailscale/docker-compose.yml b/tailscale/docker-compose.yml index 49cb399..d086ad9 100644 --- a/tailscale/docker-compose.yml +++ b/tailscale/docker-compose.yml @@ -29,15 +29,15 @@ services: - TS_ROUTES= # 未声明子网路由,保持默认 - TS_SOCKET=/var/run/tailscale/tailscaled.sock # Unix 套接字路径,默认值 - TS_SOCKS5_SERVER= # 未设置 SOCKS5 代理地址,保持默认 - command: /bin/sh -c "/usr/local/bin/containerboot && tailscaled && tailscale up --authkey=${TS_AUTHKEY} && tailscale funnel 48080" + command: /bin/sh -c "/usr/local/bin/containerboot && tailscaled && tailscale up --authkey=${TS_AUTHKEY} && tailscale funnel 8980" webapp: container_name: webapp image: python:3.9-slim # 使用 Python 镜像 ports: - - "48080:48080" # 本地端口 48080 映射到容器内的 48080 端口 + - "8980:8980" # 本地端口 8980 映射到容器内的 8980 端口 restart: always - command: python -m http.server 48080 # 启动 Python HTTP 服务器 + command: python -m http.server 8980 # 启动 Python HTTP 服务器 volumes: shared-tailscale: