feat: add reproducible backend deployment

This commit is contained in:
wlx committed 2026-08-07 12:39:15 +08:00
1 parent 6190e58511
commit ac0d3856f0
11 files changed
+431 -16

No files matched your search

+28
View File
@@ -43,10 +43,38 @@ MINIO_IMAGE=minio/minio:latest
MINIO_MC_IMAGE=minio/mc:latest
MINIO_ROOT_USER=ai_soulmate_admin
MINIO_ROOT_PASSWORD=$(random_secret)
MINIO_APP_ACCESS_KEY=ai_soulmate_app
MINIO_APP_SECRET_KEY=$(random_secret)
MINIO_BUCKET=ai-soulmate
MINIO_API_BIND_ADDRESS=127.0.0.1
MINIO_API_HOST_PORT=9000
MINIO_CONSOLE_HOST_PORT=9001
MINIO_VOLUME_NAME=ai-soulmate-minio-data
MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:8080,http://127.0.0.1:8080
BACKEND_COMPOSE_PROJECT_NAME=ai-soulmate-backend
BACKEND_IMAGE=ai-soulmate-backend:local-deployment
BACKEND_BIND_ADDRESS=127.0.0.1
BACKEND_HOST_PORT=3001
BACKEND_MEMORY_LIMIT=4g
BACKEND_CPU_LIMIT=2.0
APP_ENV=production
SECRET_KEY=$(random_secret)
ENCRYPTION_KEY=$(random_secret)
ORDER_NO_SECRET=$(random_secret)
CDK_CODE_PEPPER=$(random_secret)
MLKJ_INTEGRATION_KEY=$(random_secret)
MLKJ_INTEGRATION_SECRET=$(random_secret)
PRINT_CLIENT_SHARED_TOKEN=$(random_secret)
OSS_PUBLIC_ENDPOINT=http://127.0.0.1:9000
CORS_ALLOWED_ORIGINS=http://localhost:8080,http://127.0.0.1:8080
AI_SOULMATE_PUBLIC_URL=http://127.0.0.1:8080
FRONTEND_URL=http://127.0.0.1:8080
TRIPO3D_API_KEY=
TRIPO3D_BASE_URL=https://api.tripo3d.com/v2/openapi
TRIPO3D_DEFAULT_MODEL_VERSION=v3.1-20260211
EOF
chmod 600 "$target_path"