feat(v2): add simple daily extraction-import orchestration
This commit is contained in:
@ -67,6 +67,31 @@ services:
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
scheduler:
|
||||
profiles: ["scheduler"]
|
||||
image: registry.younerd.org/hoopscout/scheduler:${APP_IMAGE_TAG:-latest}
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- .env
|
||||
command: /app/scripts/scheduler.sh
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
user: "10001:10001"
|
||||
volumes:
|
||||
- snapshots_incoming:/app/snapshots/incoming
|
||||
- snapshots_archive:/app/snapshots/archive
|
||||
- snapshots_failed:/app/snapshots/failed
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "grep -qa 'scheduler.sh' /proc/1/cmdline || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
static_data:
|
||||
|
||||
Reference in New Issue
Block a user