Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] 你好请问一下 docker 部署的 Cookie 有提供环境变量吗,还是说要clone 源码后自己改完配置文件再重新构建镜像? #458

Open
hello-www-1 opened this issue Jul 21, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@hello-www-1
Copy link

大佬您好我想咨询下关于 Docker 部署情况下如何更处理 Cookie问题,你打包的镜像是否提供了以环境变量形式传入 Cookie 的功能,还是说我需要clone 仓库源码,更改配置文件中的 Cookie 后重新打包镜像部署呢?

@hello-www-1 hello-www-1 added the enhancement New feature or request label Jul 21, 2024
@Evil0ctal
Copy link
Owner

参考这个issue:

#450 (comment)

@duiaic
Copy link

duiaic commented Oct 9, 2024

docker run -d --name douyin_tiktok_api -p 80:80 \
  -v $PWD/Douyin_TikTok_Download/data:/data \
  -v $PWD/Douyin_TikTok_Download/douyin/web/config.yaml:/app/crawlers/douyin/web/config.yaml \
  -v $PWD/Douyin_TikTok_Download/tiktok/web/config.yaml:/app/crawlers/tiktok/web/config.yaml \
  -v $PWD/Douyin_TikTok_Download/tiktok/app/config.yaml:/app/crawlers/tiktok/app/config.yaml \
  -v $PWD/Douyin_TikTok_Download/bilibili/web/config.yaml:/app/crawlers/bilibili/web/config.yaml \
  -e MY_ENV_VAR=my_value \
  evil0ctal/douyin_tiktok_download_api

我是这么弄的。要先在主机里创建好config.yaml文件 不然直接运行命令config.yaml文件就会变成文件夹了。

@duiaic
Copy link

duiaic commented Oct 9, 2024

docker run -d --name douyin_tiktok_api -p 8082:80 \
  -v $PWD/Douyin_TikTok_Download/data:/data \
  -v $PWD/Douyin_TikTok_Download/download:/app/download \
  -v $PWD/Douyin_TikTok_Download/config.yaml:/app/config.yaml \
  -v $PWD/Douyin_TikTok_Download/douyin-web-config.yaml:/app/crawlers/douyin/web/config.yaml \
  -v $PWD/Douyin_TikTok_Download/tiktok-web-config.yaml:/app/crawlers/tiktok/web/config.yaml \
  -v $PWD/Douyin_TikTok_Download/tiktok-app-config.yaml:/app/crawlers/tiktok/app/config.yaml \
  -v $PWD/Douyin_TikTok_Download/bilibili-web-config.yaml:/app/crawlers/bilibili/web/config.yaml \
  -e MY_ENV_VAR=my_value \
  evil0ctal/douyin_tiktok_download_api

还是这样舒服一点。配置文件都放一个文件下。

@Evil0ctal
Copy link
Owner

嗯嗯,最近忙着投简历,晚些时候我会使用数据库代替当前的config文件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants