Add cron job functionality and Docker integration

This commit is contained in:
2026-01-31 00:31:43 +03:00
parent 73acc5410f
commit 3132ab2fa2
6 changed files with 210 additions and 30 deletions

View File

@@ -1,3 +1,5 @@
version: '3.8'
services:
quoteforge:
build: .
@@ -15,3 +17,14 @@ services:
timeout: 3s
retries: 3
start_period: 5s
quoteforge-cron:
build: .
container_name: quoteforge-cron
restart: unless-stopped
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./logs:/app/logs
command: /usr/sbin/crond -f -l 8
environment:
- TZ=Europe/Moscow