5c9420af2a
为docker-compose.yml文件添加version "3.8"声明, 确保使用兼容的compose文件格式版本。
36 lines
919 B
Bash
36 lines
919 B
Bash
# PostgreSQL
|
|
POSTGRES_USER=shiran
|
|
POSTGRES_PASSWORD=change-me-postgres-password
|
|
POSTGRES_DB=ciyuan_viewfinder
|
|
POSTGRES_PGDATA=/var/lib/postgresql/data/pgdata
|
|
|
|
# Redis
|
|
REDIS_URL=redis://redis:6379/0
|
|
|
|
# MinIO / S3
|
|
MINIO_ROOT_USER=minioadmin
|
|
MINIO_ROOT_PASSWORD=change-me-minio-password
|
|
S3_ENDPOINT=http://minio:9000
|
|
S3_ACCESS_KEY=minioadmin
|
|
S3_SECRET_KEY=change-me-minio-password
|
|
S3_BUCKET=ciyuan-viewfinder
|
|
|
|
# Server
|
|
DATABASE_URL=postgresql+asyncpg://shiran:change-me-postgres-password@postgres:5432/ciyuan_viewfinder
|
|
DATABASE_URL_SYNC=postgresql://shiran:change-me-postgres-password@postgres:5432/ciyuan_viewfinder
|
|
SECRET_KEY=change-me-before-production
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=43200
|
|
REFRESH_TOKEN_EXPIRE_DAYS=60
|
|
STORAGE_BACKEND=local
|
|
LOCAL_STORAGE_PATH=/app/uploads
|
|
TENCENT_MAP_KEY=
|
|
LOG_LEVEL=INFO
|
|
LOG_JSON=false
|
|
|
|
# Frontend build
|
|
VITE_API_BASE=/api/v1
|
|
|
|
# Nginx host ports
|
|
CLIENT_WEB_PORT=5173
|
|
ADMIN_WEB_PORT=5174
|