🐛: 修复Docker文件
This commit is contained in:
parent
e6fd101f8e
commit
e59aeed199
1 changed files with 16 additions and 21 deletions
|
|
@ -1,22 +1,17 @@
|
||||||
version: "3.9"
|
version: "3.9" # Docker Compose 文件版本
|
||||||
|
|
||||||
services:
|
services: # 定义服务列表
|
||||||
douyin_tiktok_download_api:
|
douyin_tiktok_download_api: # 服务名称
|
||||||
image: evil0ctal/douyin_tiktok_download_api
|
image: evil0ctal/douyin_tiktok_download_api # 使用的 Docker 镜像
|
||||||
container_name: douyin_tiktok_download_api
|
network_mode: host # 使用主机网络模式
|
||||||
restart: always
|
container_name: douyin_tiktok_download_api # 容器名称
|
||||||
volumes:
|
restart: always # 容器退出后总是重启
|
||||||
- ./path/config.yaml:/crawlers/douyin/web/config.yaml
|
volumes: # 挂载卷配置
|
||||||
- ./path/config.yaml:/crawlers/tiktok/web/config.yaml
|
- ./douyin_tiktok_download_api/douyin_web/config.yaml:/crawlers/douyin/web/config.yaml
|
||||||
- ./path/config.yaml:/crawlers/tiktok/app/config.yaml
|
- ./douyin_tiktok_download_api/tiktok_web/config.yaml:/crawlers/tiktok/web/config.yaml
|
||||||
environment:
|
- ./douyin_tiktok_download_api/tiktok_app/config.yaml:/crawlers/tiktok/app/config.yaml
|
||||||
TZ: Asia/Shanghai
|
environment: # 环境变量配置
|
||||||
PUID: 1026
|
TZ: Asia/Shanghai # 设置时区为亚洲/上海
|
||||||
PGID: 100
|
PUID: 1026 # 设置容器内部的用户 ID
|
||||||
ports:
|
PGID: 100 # 设置容器内部的用户组 ID
|
||||||
- 80:80
|
privileged: true # 设置特权模式以便容器内部可以执行特权操作
|
||||||
privileged: true
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpus: '0.80'
|
|
||||||
Loading…
Reference in a new issue