crontab updated

This commit is contained in:
berkay 2024-11-24 18:33:49 +03:00
parent a71939c651
commit e119c66d3c
2 changed files with 3 additions and 4 deletions

View File

@ -2,8 +2,8 @@ services:
commercial_mongo_service: commercial_mongo_service:
container_name: commercial_mongo_service container_name: commercial_mongo_service
# image: "bitnami/mongodb:latest" image: "bitnami/mongodb:latest"
image: "bitnami/mongodb:4.4.1-debian-10-r3" # image: "bitnami/mongodb:4.4.1-debian-10-r3"
networks: networks:
- network_store_services - network_store_services
environment: environment:

View File

@ -19,8 +19,7 @@ COPY ../api_validations ./service_account_records/api_validations
RUN apt-get update && apt-get install -y cron RUN apt-get update && apt-get install -y cron
# 11:00 Istanbul Time (UTC+3) system time is 08:00 UTC # 11:00 Istanbul Time (UTC+3) system time is 08:00 UTC
RUN echo "*/15 * * * * /usr/local/bin/python /service_account_records/app_accounts.py " >> /tmp/crontab_list && crontab /tmp/crontab_list RUN echo "*/15 * * * * /usr/local/bin/python /service_account_records/app_accounts.py >> /var/log/cron.log 2>&1" >> /tmp/crontab_list && crontab /tmp/crontab_list
RUN touch /var/log/cron.log RUN touch /var/log/cron.log
CMD cron && tail -f /var/log/cron.log CMD cron && tail -f /var/log/cron.log