fix(upload): isolate cron jobs in worker

This commit is contained in:
2026-08-02 18:21:31 +07:00 Unverified
parent 53606c60af
commit dbf8e345a3
7 changed files with 28 additions and 35 deletions
+10 -7
View File
@@ -2,6 +2,8 @@ services:
app:
build: .
restart: unless-stopped
ports:
- "8606:80"
expose:
- "3000"
env_file:
@@ -11,23 +13,24 @@ services:
nginx:
image: nginx:alpine
ports:
- "8606:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
app:
condition: service_started
restart: true
network_mode: "service:app"
restart: unless-stopped
video-upload-scheduler:
video-upload-worker:
build:
context: .
dockerfile: Dockerfile.scheduler
target: video-upload-worker
restart: unless-stopped
depends_on:
- app
env_file:
- .env
volumes:
- /nfs/erika:/nfs/erika
secret-scan:
image: ghcr.io/gitleaks/gitleaks:v8.30.1