- 添加Dockerfile.dev用于开发环境 - 重构主Dockerfile使用多阶段构建 - 添加nginx配置和entrypoint脚本 - 更新docker-compose.yml配置 - 修改API基础路径为相对路径 - 更新vite配置支持环境变量
15 lines
312 B
YAML
15 lines
312 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
thinkflow:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: thinkflow
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- API_BASE_URL=${API_BASE_URL:-https://thinkflow.lz-t.top}
|
|
- API_HOST=${API_HOST:-thinkflow.lz-t.top}
|
|
restart: unless-stopped
|