change port
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user