feat(v0.4): import all Raspberry Pi scripts and implement Recovery Management engine + Shinkan adapters
This commit is contained in:
1 parent
40188c0e10
commit
c53fc0a939
35 files changed
+2877
-191
No files matched your search
@@ -0,0 +1,73 @@
|
||||
# Isolated disposable Restore-Test Compose configuration for llm-node.
|
||||
# Implements RECOVERY_CONTRACT.md section 3.3:
|
||||
# - No fixed container_name (prevents collision with shinkan-prod)
|
||||
# - Localhost-only ports (18003 / 13003), no published postgres port
|
||||
# - Shared media mounted strictly read-only (:ro)
|
||||
# - No retention-cron service, SMTP and OpenRouter disabled
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_DB: "${DB_NAME:-shinkan}"
|
||||
POSTGRES_USER: "${DB_USER:-shinkan_user}"
|
||||
POSTGRES_PASSWORD: "${DB_PASSWORD}"
|
||||
volumes:
|
||||
- restoretest-db-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- restoretest-net
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
DB_NAME: shinkan
|
||||
DB_USER: shinkan_user
|
||||
DB_PASSWORD: "${DB_PASSWORD}"
|
||||
OPENROUTER_API_KEY: ""
|
||||
OPENROUTER_MODEL: ""
|
||||
SMTP_HOST: ""
|
||||
SMTP_PORT: ""
|
||||
SMTP_USER: ""
|
||||
SMTP_PASS: ""
|
||||
SMTP_FROM: ""
|
||||
AUTO_ADMIN_FIRST_USER: "false"
|
||||
ADMIN_BOOTSTRAP_EMAILS: ""
|
||||
ENVIRONMENT: "production"
|
||||
MEDIA_ROOT: "/app/media"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /srv/shinkan/prod/media
|
||||
target: /app/media
|
||||
read_only: true
|
||||
bind:
|
||||
create_host_path: false
|
||||
ports:
|
||||
- "127.0.0.1:18003:8000"
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
- restoretest-net
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_URL: ""
|
||||
ports:
|
||||
- "127.0.0.1:13003:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- restoretest-net
|
||||
|
||||
volumes:
|
||||
restoretest-db-data:
|
||||
|
||||
networks:
|
||||
restoretest-net:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user