修改端口号

This commit is contained in:
yinzhou 2025-04-18 09:35:41 +08:00
parent 8c4dc11157
commit 653322dd17
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ services:
- douyin_tiktok_download_api - douyin_tiktok_download_api
douyin_tiktok_download_api: # 服务名称 douyin_tiktok_download_api: # 服务名称
image: evil0ctal/douyin_tiktok_download_api # 使用的 Docker 镜像 image: registry.cn-hangzhou.aliyuncs.com/yinzhou_docker_hub/douyin_tiktok_download_api # 使用的 Docker 镜像
container_name: douyin_tiktok_download_api # 容器名称 container_name: douyin_tiktok_download_api # 容器名称
hostname: douyin_tiktok_download_api hostname: douyin_tiktok_download_api
restart: always # 容器退出后总是重启 restart: always # 容器退出后总是重启
@ -24,8 +24,8 @@ services:
environment: # 环境变量配置 environment: # 环境变量配置
TZ: Asia/Shanghai # 设置时区为亚洲/上海 TZ: Asia/Shanghai # 设置时区为亚洲/上海
# 需要调试可以打开80端口 # 需要调试可以打开80端口
# ports: ports:
# - 80:80 - 9579:80
# docker-compose up --build # docker-compose up --build

View File

@ -18,7 +18,7 @@ def douyin_content(video_url: str = Query(DEFAULT_mobile_VIDEO_URL, min_length=1
return {"code": 400, "message": "An error occurred.", "data": "请指定video_url"} return {"code": 400, "message": "An error occurred.", "data": "请指定video_url"}
# 获取get请求参数 # 获取get请求参数
url = "http://douyin_tiktok_download_api:80/api/hybrid/video_data" url = "http://douyin_tiktok_download_api:9579/api/hybrid/video_data"
querystring = {"url": video_url, "minimal": "false"} querystring = {"url": video_url, "minimal": "false"}
response = requests.request("GET", url, params=querystring) response = requests.request("GET", url, params=querystring)
@ -42,7 +42,7 @@ def douyin_pc(video_url: str = Query(DEFAULT_PC_VIDEO_URL, min_length=10)):
return {"code": 400, "message": "An error occurred.", "data": "请指定video_url"} return {"code": 400, "message": "An error occurred.", "data": "请指定video_url"}
# 获取get请求参数 # 获取get请求参数
url = "http://douyin_tiktok_download_api:80/api/hybrid/video_data" url = "http://douyin_tiktok_download_api:9579/api/hybrid/video_data"
querystring = {"url": video_url, "minimal": "false"} querystring = {"url": video_url, "minimal": "false"}
response = requests.request("GET", url, params=querystring) response = requests.request("GET", url, params=querystring)
@ -67,7 +67,7 @@ def douyin_phone(video_url: str = Query(DEFAULT_mobile_VIDEO_URL, min_length=10)
return {"code": 400, "message": "An error occurred.", "data": "请指定video_url"} return {"code": 400, "message": "An error occurred.", "data": "请指定video_url"}
# 获取get请求参数 # 获取get请求参数
url = "http://douyin_tiktok_download_api:80/api/hybrid/video_data" url = "http://douyin_tiktok_download_api:9579/api/hybrid/video_data"
querystring = {"url": video_url, "minimal": "true"} querystring = {"url": video_url, "minimal": "true"}
response = requests.request("GET", url, params=querystring) response = requests.request("GET", url, params=querystring)