Files
drone-cicd/bluetti-tools/docker-compose.yml
2026-07-08 11:08:45 +08:00

32 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 博客图片资源 WebReact 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: