From 5f3c8ac47ab9ac263de4d7e488781669d8da1966 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sun, 28 Sep 2025 21:01:11 -0800 Subject: [PATCH] use docker stack compose format --- services/our/compose.production.yaml | 16 ++-------------- services/our/package.json | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/services/our/compose.production.yaml b/services/our/compose.production.yaml index a999319..5445d52 100644 --- a/services/our/compose.production.yaml +++ b/services/our/compose.production.yaml @@ -1,8 +1,5 @@ - services: - postgres: - container_name: our-postgres image: postgres:17 restart: unless-stopped env_file: ./.env @@ -17,27 +14,20 @@ services: server: image: gitea.futureporn.net/futureporn/our:latest - container_name: our-server env_file: ./.env depends_on: - postgres: - condition: service_healthy - pull_policy: always + - postgres init: true entrypoint: > sh -c "npx prisma migrate deploy && npm run start:server" volumes: - /mnt/vfs/futureporn:/mnt/vfs/futureporn - worker: image: gitea.futureporn.net/futureporn/our:latest - container_name: our-worker env_file: ./.env depends_on: - postgres: - condition: service_healthy - pull_policy: always + - postgres init: true entrypoint: > sh -c "npm run start:worker" @@ -54,5 +44,3 @@ services: volumes: pgdata: - - diff --git a/services/our/package.json b/services/our/package.json index af14eac..fe7cd2d 100644 --- a/services/our/package.json +++ b/services/our/package.json @@ -1,7 +1,7 @@ { "name": "futureporn-our", "private": true, - "version": "2.8.21", + "version": "2.8.22", "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",