fix(upload): isolate cron jobs in worker
This commit is contained in:
+10
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user