Files
DDUp/.env.example

47 lines
1.3 KiB
Plaintext
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.

# Vitals 环境变量配置示例
#
# 项目支持多环境配置:
#
# 本地开发:
# 复制此文件为 .env.local 并修改配置
# 启动: docker-compose up
#
# 生产环境:
# 复制此文件为 .env.production 并修改配置
# 启动: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# ============================================
# 环境标识development | production
ENVIRONMENT=development
# ============================================
# MySQL 配置
# ============================================
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=vitals
MYSQL_PASSWORD=your_password_here
MYSQL_DATABASE=vitals
MYSQL_ROOT_PASSWORD=rootpassword
# ============================================
# 管理员账户(首次启动时自动创建)
# ============================================
ADMIN_USERNAME=admin
ADMIN_PASSWORD=changeme123
# ============================================
# 安全配置
# ============================================
# JWT 密钥(请使用随机字符串,可用 openssl rand -hex 32 生成)
JWT_SECRET=your_random_secret_key_here
# ============================================
# AI 食物识别(可选,二选一)
# ============================================
# 阿里云通义千问
DASHSCOPE_API_KEY=your_dashscope_api_key_here
# DeepSeek
# DEEPSEEK_API_KEY=your_deepseek_api_key_here