From e119c66d3ce4f8648921e0a2557b697b43941be8 Mon Sep 17 00:00:00 2001 From: berkay Date: Sun, 24 Nov 2024 18:33:49 +0300 Subject: [PATCH] crontab updated --- docker-compose.yml | 4 ++-- service_account_records/account.Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d3e47af..7c40653 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,8 @@ services: commercial_mongo_service: container_name: commercial_mongo_service -# image: "bitnami/mongodb:latest" - image: "bitnami/mongodb:4.4.1-debian-10-r3" + image: "bitnami/mongodb:latest" +# image: "bitnami/mongodb:4.4.1-debian-10-r3" networks: - network_store_services environment: diff --git a/service_account_records/account.Dockerfile b/service_account_records/account.Dockerfile index 6c2e234..622ecb6 100644 --- a/service_account_records/account.Dockerfile +++ b/service_account_records/account.Dockerfile @@ -19,8 +19,7 @@ COPY ../api_validations ./service_account_records/api_validations RUN apt-get update && apt-get install -y cron # 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 CMD cron && tail -f /var/log/cron.log