Skip to content

Commit

Permalink
🐛: 修复Docker文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Evil0ctal committed Apr 25, 2024
1 parent 46b123d commit 9e2f9e8
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
version: "3.9" # Docker Compose 文件版本
version: "3.9"

services: # 定义服务列表
douyin_tiktok_download_api: # 服务名称
image: evil0ctal/douyin_tiktok_download_api # 使用的 Docker 镜像
network_mode: host # 使用主机网络模式
container_name: douyin_tiktok_download_api # 容器名称
restart: always # 容器退出后总是重启
volumes: # 挂载卷配置
services:
douyin_tiktok_download_api:
image: evil0ctal/douyin_tiktok_download_api
container_name: douyin_tiktok_download_api
restart: always
volumes:
- ./path/config.yaml:/crawlers/douyin/web/config.yaml
- ./path/config.yaml:/crawlers/tiktok/web/config.yaml
- ./path/config.yaml:/crawlers/tiktok/app/config.yaml
environment: # 环境变量配置
TZ: Asia/Shanghai # 设置时区为亚洲/上海
PUID: 1026 # 设置容器内部的用户 ID
PGID: 100 # 设置容器内部的用户组 ID
environment:
TZ: Asia/Shanghai
PUID: 1026
PGID: 100
ports:
- "80:80"
privileged: true # 设置特权模式以便容器内部可以执行特权操作
privileged: true
deploy:
resources:
limits:
Expand Down

0 comments on commit 9e2f9e8

Please sign in to comment.