mirror of
https://github.com/Yuyi-Oak/BlueArchiveToolkit.git
synced 2026-09-18 06:34:54 +08:00
docs: update current document status
This commit is contained in:
@@ -10,9 +10,9 @@ DB_MODE=remote
|
||||
|
||||
# PostgreSQL 配置
|
||||
# 本地模式:使用 localhost:5432
|
||||
# 远程模式:填写远程服务器的公网 IP 和端口
|
||||
DB_HOST=your.remote.server.com # 远程服务器地址(或 localhost 用于本地)
|
||||
DB_PORT=5432
|
||||
# 远程模式:优先使用私网/VPN;SSH tunnel 时填写本地转发地址和端口
|
||||
DB_HOST=127.0.0.1 # 本地或 SSH tunnel 地址
|
||||
DB_PORT=15432
|
||||
DB_USER=bat_user
|
||||
DB_PASSWORD=your_secure_password_here
|
||||
DB_NAME=bluearchive_toolkit
|
||||
@@ -32,9 +32,9 @@ DB_SSL_MODE=prefer
|
||||
|
||||
# Redis 配置
|
||||
# 本地模式:使用 localhost:6379
|
||||
# 远程模式:填写远程服务器的公网 IP 和端口
|
||||
REDIS_HOST=your.remote.server.com # 远程服务器地址(或 localhost 用于本地)
|
||||
REDIS_PORT=6379
|
||||
# 远程模式:优先使用私网/VPN;SSH tunnel 时填写本地转发地址和端口
|
||||
REDIS_HOST=127.0.0.1 # 本地或 SSH tunnel 地址
|
||||
REDIS_PORT=16379
|
||||
REDIS_PASSWORD=your_redis_password_here
|
||||
REDIS_DB=0
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
POSTGRES_PASSWORD: bat_dev_password
|
||||
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
|
||||
ports:
|
||||
- "0.0.0.0:5432:5432"
|
||||
- "127.0.0.1:5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./postgres-init:/docker-entrypoint-initdb.d
|
||||
@@ -41,7 +41,7 @@ services:
|
||||
profiles: ["local-db"] # 只有指定 --profile local-db 才启动
|
||||
command: redis-server /usr/local/etc/redis/redis.conf
|
||||
ports:
|
||||
- "0.0.0.0:6379:6379"
|
||||
- "127.0.0.1:6379:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# 1. 将此文件和相关配置上传到远程服务器
|
||||
# 2. 复制 .env.example 为 .env 并配置密码
|
||||
# 3. 运行:docker compose -f docker-compose.remote-db.yml up -d
|
||||
# 4. 确保防火墙开放 5432 和 6379 端口
|
||||
# 4. 默认仅绑定宿主机回环地址;远程开发使用私网、VPN 或 SSH tunnel
|
||||
|
||||
version: '3.9'
|
||||
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
POSTGRES_PASSWORD: ${REMOTE_DB_POSTGRES_PASSWORD}
|
||||
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
|
||||
ports:
|
||||
- "0.0.0.0:5432:5432" # 监听所有网络接口
|
||||
- "127.0.0.1:5432:5432" # 不直接暴露到公网
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./postgres-init:/docker-entrypoint-initdb.d
|
||||
@@ -44,7 +44,7 @@ services:
|
||||
container_name: bat-redis
|
||||
command: redis-server /usr/local/etc/redis/redis.conf
|
||||
ports:
|
||||
- "0.0.0.0:6379:6379" # 监听所有网络接口
|
||||
- "127.0.0.1:6379:6379" # 不直接暴露到公网
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
- ./redis-remote.conf:/usr/local/etc/redis/redis.conf
|
||||
|
||||
Reference in New Issue
Block a user