change port

This commit is contained in:
Your Name
2024-10-29 16:35:00 +08:00
parent f1e0d142f1
commit 27a44511d0

View File

@@ -29,15 +29,15 @@ services:
- TS_ROUTES= # 未声明子网路由,保持默认 - TS_ROUTES= # 未声明子网路由,保持默认
- TS_SOCKET=/var/run/tailscale/tailscaled.sock # Unix 套接字路径,默认值 - TS_SOCKET=/var/run/tailscale/tailscaled.sock # Unix 套接字路径,默认值
- TS_SOCKS5_SERVER= # 未设置 SOCKS5 代理地址,保持默认 - 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: webapp:
container_name: webapp container_name: webapp
image: python:3.9-slim # 使用 Python 镜像 image: python:3.9-slim # 使用 Python 镜像
ports: ports:
- "48080:48080" # 本地端口 48080 映射到容器内的 48080 端口 - "8980:8980" # 本地端口 8980 映射到容器内的 8980 端口
restart: always restart: always
command: python -m http.server 48080 # 启动 Python HTTP 服务器 command: python -m http.server 8980 # 启动 Python HTTP 服务器
volumes: volumes:
shared-tailscale: shared-tailscale: