Add cron job functionality and Docker integration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user