Added worker tasks to docker-compose

This commit is contained in:
2026-04-21 17:24:03 +09:30
parent 1778dd85d5
commit 33a7fdac59
2 changed files with 76 additions and 0 deletions
+36
View File
@@ -78,6 +78,42 @@ services:
timeout: 10s
retries: 3
zerotier-reconciler:
build:
context: .
dockerfile: Dockerfile.job
env_file:
- .env
environment:
- JOB_NAME=zerotier_reconciliation
- JOB_INTERVAL_SECONDS=${ZEROTIER_RECONCILE_INTERVAL:-120}
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
networks:
- authy2-network
restart: unless-stopped
mfa-compliance:
build:
context: .
dockerfile: Dockerfile.job
env_file:
- .env
environment:
- JOB_NAME=mfa_compliance
- JOB_INTERVAL_SECONDS=${MFA_COMPLIANCE_INTERVAL:-3600}
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
networks:
- authy2-network
restart: unless-stopped
networks:
authy2-network:
driver: bridge