use replications

This commit is contained in:
CJ_Clippy 2025-09-30 21:35:54 -08:00
parent b7f4f7b2c8
commit 32b6698d23
2 changed files with 23 additions and 2 deletions

View File

@ -11,6 +11,13 @@ services:
retries: 5 retries: 5
start_period: 10s start_period: 10s
timeout: 10s timeout: 10s
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 60s
server: server:
image: gitea.futureporn.net/futureporn/our:latest image: gitea.futureporn.net/futureporn/our:latest
@ -38,6 +45,20 @@ services:
sh -c "npm run start:worker" sh -c "npm run start:worker"
volumes: volumes:
- /mnt/vfs/futureporn:/mnt/vfs/futureporn - /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: qbittorrent:
image: gitea.futureporn.net/futureporn/qbittorrent-nox:latest image: gitea.futureporn.net/futureporn/qbittorrent-nox:latest

View File

@ -1,7 +1,7 @@
{ {
"name": "futureporn-our", "name": "futureporn-our",
"private": true, "private": true,
"version": "2.8.27", "version": "2.8.28",
"type": "module", "type": "module",
"scripts": { "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", "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": { "prisma": {
"seed": "tsx prisma/seed.ts" "seed": "tsx prisma/seed.ts"
} }
} }