This commit is contained in:
gitadmin
2026-09-11 11:31:14 +08:00
parent 9437f0bb56
commit 723f3a9af7
2 changed files with 199 additions and 11 deletions
+108
View File
@@ -84,6 +84,33 @@ services:
options:
max-size: "500m"
max-file: "10"
# 后端服务
django_naivevue:
# 镜像名称
image: ${DOCKER_REGISTRY_URL}/djangoadmin/${SERVER_NAME}:${VERSION:-latest}
# 容器名称
container_name: ${SERVER_NAME}
# 将容器运行在特权模式下,意味着容器内的进程将具
# 有访问宿主机的权限,包括文件系统、设备和系统功能等
privileged: true
# 指定容器中运行的用户
user: root
# 启动策略为始终重启
restart: always
# 设置网络模式为host模式
network_mode: host
# 端口映射
ports:
- 8019:8019
# 文件挂载
volumes:
- $PWD/${SERVER_NAME}/uploads:/data/apps/uploads
# 日志配置
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "10"
# 网关服务
flask_layui:
# 镜像名称
@@ -165,6 +192,33 @@ services:
options:
max-size: "500m"
max-file: "10"
# 后端服务
flask_naivevue:
# 镜像名称
image: ${DOCKER_REGISTRY_URL}/djangoadmin/${SERVER_NAME}:${VERSION:-latest}
# 容器名称
container_name: ${SERVER_NAME}
# 将容器运行在特权模式下,意味着容器内的进程将具
# 有访问宿主机的权限,包括文件系统、设备和系统功能等
privileged: true
# 指定容器中运行的用户
user: root
# 启动策略为始终重启
restart: always
# 设置网络模式为host模式
network_mode: host
# 端口映射
ports:
- 8029:8029
# 文件挂载
volumes:
- $PWD/${SERVER_NAME}/uploads:/data/apps/uploads
# 日志配置
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "10"
# 应用服务
fastapi_layui:
# 镜像名称
@@ -246,6 +300,33 @@ services:
options:
max-size: "500m"
max-file: "10"
# 后端服务
fastapi_naivevue:
# 镜像名称
image: ${DOCKER_REGISTRY_URL}/djangoadmin/${SERVER_NAME}:${VERSION:-latest}
# 容器名称
container_name: ${SERVER_NAME}
# 将容器运行在特权模式下,意味着容器内的进程将具
# 有访问宿主机的权限,包括文件系统、设备和系统功能等
privileged: true
# 指定容器中运行的用户
user: root
# 启动策略为始终重启
restart: always
# 设置网络模式为host模式
network_mode: host
# 端口映射
ports:
- 8039:8039
# 文件挂载
volumes:
- $PWD/${SERVER_NAME}/uploads:/data/apps/uploads
# 日志配置
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "10"
# 应用服务
tornado_layui:
# 镜像名称
@@ -327,3 +408,30 @@ services:
options:
max-size: "500m"
max-file: "10"
# 后端服务
tornado_naivevue:
# 镜像名称
image: ${DOCKER_REGISTRY_URL}/djangoadmin/${SERVER_NAME}:${VERSION:-latest}
# 容器名称
container_name: ${SERVER_NAME}
# 将容器运行在特权模式下,意味着容器内的进程将具
# 有访问宿主机的权限,包括文件系统、设备和系统功能等
privileged: true
# 指定容器中运行的用户
user: root
# 启动策略为始终重启
restart: always
# 设置网络模式为host模式
network_mode: host
# 端口映射
ports:
- 8049:8049
# 文件挂载
volumes:
- $PWD/${SERVER_NAME}/uploads:/data/apps/uploads
# 日志配置
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "10"