- 添加PostgreSQL数据库设计,包含部门、用户、角色、权限、项目、任务、工单、 风险、数据录入及文件附件等核心表结构及索引 - 启用pgvector和uuid-ossp扩展,支持向量存储和UUID生成 - 增加数据库表详细注释,便于后续维护与理解 - 配置Spring Boot项目支持Java 17及相关依赖(Web、PostgreSQL、MyBatis Plus、 MinIO、AWS SDK S3) - 新增Dockerfile及构建镜像脚本,支持amd及arm架构容器构建 - 提供完整Docker Compose环境配置,包含MySQL、Redis、Redis Admin、MinIO、 PhpMyAdmin及应用服务容器 - 新增Nginx反向代理配置文件,支持Admin和Client前端分离部署 - 添加一键启动Shell脚本,简化环境及应用服务启动流程 - 更新Spring Boot配置,设置active profile为dev及服务默认端口8080 - 新增Redis配置文件,开放网络访问端口与绑定所有地址
69 lines
1.6 KiB
YAML
69 lines
1.6 KiB
YAML
# /usr/local/bin/docker-compose -f /docs/dev-ops/environment/environment-docker-compose-2.4.yml up -d
|
|
version: '3.8'
|
|
# docker-compose -f docker-compose-app.yml up -d
|
|
# 你需要修改system为你自身系统的仓库名
|
|
services:
|
|
weform-run:
|
|
image: system/weform-run
|
|
container_name: weform-run
|
|
restart: on-failure
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- TZ=PRC
|
|
- SERVER_PORT=8080
|
|
volumes:
|
|
- ./log:/data/log
|
|
- ./upload:/upload
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
networks:
|
|
- my-network
|
|
|
|
# Admin前端服务
|
|
admin-fronted:
|
|
image: nginx:alpine
|
|
container_name: admin-fronted
|
|
restart: on-failure
|
|
ports:
|
|
- "8848:80"
|
|
volumes:
|
|
- ./nginx/Admin-fronted/dist:/usr/share/nginx/html:ro
|
|
- ./nginx/Admin-fronted/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
- weform-run
|
|
networks:
|
|
- my-network
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
# Client前端服务
|
|
client-fronted:
|
|
image: nginx:alpine
|
|
container_name: client-fronted
|
|
restart: on-failure
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./nginx/Client-fronted/dist:/usr/share/nginx/html:ro
|
|
- ./nginx/Client-fronted/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
depends_on:
|
|
- weform-run
|
|
networks:
|
|
- my-network
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
networks:
|
|
my-network:
|
|
driver: bridge
|