部署备份
This commit is contained in:
32
bluetti-tools/docker-compose.yml
Normal file
32
bluetti-tools/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# 博客图片资源 Web(React Router + Prisma SQLite)
|
||||
#
|
||||
# 使用:
|
||||
# 1. 复制 apps/web/.env.example 为 apps/web/.env,填写 SHOPIFY_*、SESSION_SECRET 等
|
||||
# 2. docker compose up -d --build
|
||||
# 3. 浏览器访问 http://localhost:30001 ,无用户时打开 /setup
|
||||
# 说明:compose 会注入 DATABASE_URL=file:/data/prod.db(覆盖 .env 里本地 SQLite 路径)
|
||||
#
|
||||
# 数据库文件持久化在卷 prisma-data 中;更换主机或备份请挂载/拷贝该卷。
|
||||
|
||||
services:
|
||||
web:
|
||||
image: bluetti-tools-web:latest
|
||||
ports:
|
||||
- "30001:3000"
|
||||
env_file:
|
||||
- apps/web/.env
|
||||
environment:
|
||||
# 覆盖 .env 中的本地路径,使用容器内持久化卷
|
||||
DATABASE_URL: file:/data/prod.db
|
||||
HOST: 0.0.0.0
|
||||
PORT: "3000"
|
||||
# 生产必须设置(与 apps/web/.env 中一致);未设置会导致登录时报错
|
||||
# SESSION_SECRET: 请用 openssl rand -hex 32 生成后写入 apps/web/.env 或此处
|
||||
# 公网访问时请改为实际 HTTPS 地址(OAuth 回调、邮件链接)
|
||||
# SHOPIFY_APP_URL: https://your-domain.com
|
||||
volumes:
|
||||
- /bluetti/frontend_project/bluetti-tools-configs/data:/data
|
||||
restart: unless-stopped
|
||||
|
||||
# volumes:
|
||||
# prisma-data:
|
||||
Reference in New Issue
Block a user