feat: schedule authorized community imports

This commit is contained in:
ik
2026-09-07 16:45:49 +07:00
parent 4e037eb7e8
commit 0701383c28
12 changed files with 177 additions and 5 deletions
+16
View File
@@ -107,6 +107,22 @@ services:
condition: service_healthy
command: ["python", "-m", "app.scheduler"]
community-scheduler:
build:
context: .
dockerfile: apps/api/Dockerfile
profiles: ["scheduler"]
restart: unless-stopped
environment:
DATABASE_URL: postgresql+psycopg://rf4:rf4_local@db:5432/rf4_spotter
COMMUNITY_IMPORT_INTERVAL_SECONDS: ${COMMUNITY_IMPORT_INTERVAL_SECONDS:-1800}
RF4MAP_POINT_URL: ${RF4MAP_POINT_URL:-https://rf4map.ru/points/275}
RF4POSTS_SPOT_URL: ${RF4POSTS_SPOT_URL:-https://rf4-posts.com/ru/spots/d0c6d9c6-4ebf-49a7-98a8-9a562553a8ee}
LOG_LEVEL: ${LOG_LEVEL:-INFO}
depends_on:
api: {condition: service_healthy}
command: ["python", "-m", "app.community_scheduler"]
volumes:
postgres_data:
minio_data: