chore: 基线提交(重构前快照)
重构前保存现有 apps/ 结构基线,供后续各阶段回滚。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
version: '3.7'
|
||||
|
||||
# 应用服务
|
||||
services:
|
||||
# 后端服务
|
||||
fastapi_elevue:
|
||||
# 镜像名称
|
||||
image: fastapi_elevue
|
||||
# 容器名称
|
||||
container_name: fastapi_elevue
|
||||
# 构建镜像
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile
|
||||
#build: .
|
||||
# 将容器运行在特权模式下,意味着容器内的进程将具
|
||||
# 有访问宿主机的权限,包括文件系统、设备和系统功能等
|
||||
privileged: true
|
||||
# 指定容器中运行的用户
|
||||
user: root
|
||||
# 启动策略为始终重启
|
||||
restart: always
|
||||
# 设置网络模式为host模式
|
||||
network_mode: host
|
||||
# 端口映射
|
||||
ports:
|
||||
- 8031:8031
|
||||
# 文件挂载
|
||||
volumes:
|
||||
- ./uploads:/data/apps/uploads
|
||||
# 执行命令
|
||||
command: python main.py runserver 0.0.0.0:8031 --noreload
|
||||
# 日志配置
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "500m"
|
||||
max-file: "10"
|
||||
Reference in New Issue
Block a user