From 32b6698d231b2491147423f9c4440549ee3fd8db Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Tue, 30 Sep 2025 21:35:54 -0800 Subject: [PATCH] use replications --- services/our/compose.production.yaml | 21 +++++++++++++++++++++ services/our/package.json | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/services/our/compose.production.yaml b/services/our/compose.production.yaml index 3aa23b7..afbdf1f 100644 --- a/services/our/compose.production.yaml +++ b/services/our/compose.production.yaml @@ -11,6 +11,13 @@ services: retries: 5 start_period: 10s timeout: 10s + deploy: + replicas: 1 + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 5 + window: 60s server: image: gitea.futureporn.net/futureporn/our:latest @@ -38,6 +45,20 @@ services: sh -c "npm run start:worker" volumes: - /mnt/vfs/futureporn:/mnt/vfs/futureporn + deploy: + replicas: 2 + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 5 + window: 60s + update_config: + parallelism: 1 + delay: 10s + resources: + limits: + cpus: "0.5" + memory: 2G qbittorrent: image: gitea.futureporn.net/futureporn/qbittorrent-nox:latest diff --git a/services/our/package.json b/services/our/package.json index 4ab334d..77fd553 100644 --- a/services/our/package.json +++ b/services/our/package.json @@ -1,7 +1,7 @@ { "name": "futureporn-our", "private": true, - "version": "2.8.27", + "version": "2.8.28", "type": "module", "scripts": { "dev": "concurrently npm:dev:serve npm:dev:build:server npm:dev:build:client npm:dev:worker npm:dev:compose npm:dev:sftp npm:dev:qbittorrent npm:dev:tailscale", @@ -116,4 +116,4 @@ "prisma": { "seed": "tsx prisma/seed.ts" } -} +} \ No newline at end of file