Files
ShiErFeng/.env.docker.example
T
2026-09-29 09:20:31 +08:00

24 lines
704 B
Bash
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.
# 复制为根目录 .env 后再修改;根目录 .env 已加入 Git 忽略。
# 对外绑定地址和端口(默认仅绑定本机;局域网访问时将 COMPOSE_BIND_IP 改为 0.0.0.0)
COMPOSE_BIND_IP=127.0.0.1
FRONTEND_HOST_PORT=8080
BACKEND_HOST_PORT=9099
MYSQL_HOST_PORT=13307
# MySQL
MYSQL_DATABASE=shierfeng-fastapi
MYSQL_ROOT_PASSWORD=change-this-root-password
DB_USERNAME=shierfeng
DB_PASSWORD=change-this-app-password
# Redis 与登录令牌
REDIS_DATABASE=2
JWT_SECRET_KEY=replace-with-a-long-random-secret
# 本地 Compose 默认关闭传输层加密;正式环境启用时必须另行注入正式密钥。
TRANSPORT_CRYPTO_ENABLED=false
TRANSPORT_CRYPTO_MODE=off
TZ=Asia/Shanghai