fix(openapi): harden story 2.1 production lifecycle
CI / Rust Checks (push) Failing after 4m6s
CI / UI Checks (push) Has been skipped
CI / Frontend E2E (push) Has been skipped
CI / Community Image Smoke (push) Has been skipped
CI / Deploy (push) Has been skipped

This commit is contained in:
2026-08-29 00:48:22 +03:00
parent 2c94af6791
commit bc03c33387
46 changed files with 2198 additions and 276 deletions
@@ -55,12 +55,24 @@ services:
POSTGRES_IDLE_TIMEOUT_MS: ${POSTGRES_IDLE_TIMEOUT_MS:-600000}
POSTGRES_MAX_LIFETIME_MS: ${POSTGRES_MAX_LIFETIME_MS:-1800000}
artifact-storage-init:
image: ${CRANK_ADMIN_API_IMAGE:-git.itexp.me/bsodfather/crank-community-admin-api:main}
entrypoint: ["/bin/sh", "-ec"]
command: ["install -d -m 700 -- \"$${CRANK_STORAGE_ROOT}\""]
restart: "no"
environment:
CRANK_STORAGE_ROOT: ${CRANK_STORAGE_ROOT:-/var/lib/crank/storage}
volumes:
- artifact_storage:${CRANK_STORAGE_ROOT:-/var/lib/crank/storage}
admin-api:
image: ${CRANK_ADMIN_API_IMAGE:-git.itexp.me/bsodfather/crank-community-admin-api:main}
restart: unless-stopped
depends_on:
migrate:
condition: service_completed_successfully
artifact-storage-init:
condition: service_completed_successfully
postgres:
condition: service_healthy
required: false
+15
View File
@@ -55,6 +55,19 @@ services:
POSTGRES_IDLE_TIMEOUT_MS: ${POSTGRES_IDLE_TIMEOUT_MS:-600000}
POSTGRES_MAX_LIFETIME_MS: ${POSTGRES_MAX_LIFETIME_MS:-1800000}
artifact-storage-init:
image: ${CRANK_ADMIN_API_IMAGE:-crank/admin-api:dev}
build:
context: ../..
dockerfile: apps/admin-api/Dockerfile
entrypoint: ["/bin/sh", "-ec"]
command: ["install -d -m 700 -- \"$${CRANK_STORAGE_ROOT}\""]
restart: "no"
environment:
CRANK_STORAGE_ROOT: ${CRANK_STORAGE_ROOT:-/var/lib/crank/storage}
volumes:
- artifact_storage:${CRANK_STORAGE_ROOT:-/var/lib/crank/storage}
admin-api:
image: ${CRANK_ADMIN_API_IMAGE:-crank/admin-api:dev}
build:
@@ -64,6 +77,8 @@ services:
depends_on:
migrate:
condition: service_completed_successfully
artifact-storage-init:
condition: service_completed_successfully
environment:
POSTGRES_HOST: ${POSTGRES_HOST:-postgres}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}