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

docker下推送配置 #49

Open
ldy8182 opened this issue Jun 24, 2021 · 0 comments
Open

docker下推送配置 #49

ldy8182 opened this issue Jun 24, 2021 · 0 comments

Comments

@ldy8182
Copy link

ldy8182 commented Jun 24, 2021

1.https://hub.docker.com/r/nevinee/python 按照说明配置好docker;把https://github.com/leifengwl/JDRouterPush.git打包的文件拷贝在映射目录python下
2.先执行docker exec -it python bash
然后 pip install requests markdown pytz
3.GlobalVariable.py里把环境变量填好
4.在映射目录python下加入crontab.list文件,内容如下:36 6 * * * python JDRouterPush.py
5、docker-compose配置示例:
version: "2.0"
services:
python:
image: nevinee/python
container_name: python
restart: always
tty: true
network_mode: bridge
hostname: python
volumes:
- /opt/docker/python/:/root

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

No branches or pull requests

1 participant