Docker版本无法定时更新
#936
-
我使用docker-compose部署,只在容器启动的时候更新了数据,环境变量里配置的 services:
name:
image: guovern/iptv-api:latest
container_name: iptv-api
deploy:
resources:
limits:
cpus: "0"
memory: "0"
restart: always
privileged: true
volumes:
- ./config:/iptv-api/config
- ./output:/iptv-api/output
ports:
- 127.0.0.1:22003:8000
environment:
- TZ=Asia/Shanghai
- APP_PORT=8000
- UPDATE_CRON="0 22,10 * * *"
tty: true
stdin_open: true 这个是我的日志,我也不知道为什么只有开头几行有日期时间 |
Beta Was this translation helpful? Give feedback.
Answered by
Guovin
Feb 26, 2025
Replies: 1 comment
-
dcoker日志只会记录首次更新,后续更新以文件更新时间为准。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Guovin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dcoker日志只会记录首次更新,后续更新以文件更新时间为准。