添加少儿编程项目启动脚本
This commit is contained in:
parent
304d3e46c7
commit
63bc44ed22
40
itbaima-child-program/README.md
Normal file
40
itbaima-child-program/README.md
Normal file
@ -0,0 +1,40 @@
|
||||
## 项目前端
|
||||
|
||||
启动前请务必配置以下环境变量,否则项目无法正常连接到后端运行,不修改的情况下使用默认值:
|
||||
|
||||
* API_BASE_URL=http://localhost:8080 - 后端接口基础地址
|
||||
|
||||
## 项目后端
|
||||
|
||||
启动前需要先完成以下环境变量配置,若不修改则使用下列默认值。
|
||||
|
||||
项目默认管理员账号:admin 密码:admin123
|
||||
|
||||
若依相关信息:
|
||||
|
||||
* RUOYI_NAME=RuoYi - 项目名称
|
||||
* RUOYI_VERSION=3.8.8 - 项目版本
|
||||
* RUOYI_COPYRIGHT_YEAR=2024 - 版权年份
|
||||
* RUOYI_CAPTCHA_TYPE=math - 验证码类型(math 数字计算 char 字符验证)
|
||||
* RUOYI_ADDRESS_ENABLED=false - 是否启用获取ip地址
|
||||
|
||||
MySQL数据库连接信息配置:
|
||||
|
||||
* MYSQL_URL=jdbc:mysql://localhost:3306/monitor - MySQL主库连接URL
|
||||
* MYSQL_USERNAME=root - MySQL主库用户名
|
||||
* MYSQL_PASSWORD=123456 - MySQL主库密码
|
||||
* MYSQL_SLAVE=false - 是否启用MySQL从库
|
||||
* MYSQL_SLAVE_URL='' - MySQL从库连接URL
|
||||
* MYSQL_SLAVE_USERNAME=root - MySQL从库用户名
|
||||
* MYSQL_SLAVE_PASSWORD=123456 - MySQL从库密码
|
||||
|
||||
Jwt令牌生成参数配置:
|
||||
|
||||
* JWT_KEY=abcdefghijklmn - 令牌的秘钥
|
||||
* JWT_EXPIRE=30 - 令牌过期时间(分钟)
|
||||
|
||||
Redis数据库配置:
|
||||
|
||||
* REDIS_HOST=localhost - Redis数据库主机地址
|
||||
* REDIS_PORT=6379 - Redis数据库端口
|
||||
* REDIS_PASSWORD='' - Redis数据库密码
|
1549
itbaima-child-program/child-program.sql
Normal file
1549
itbaima-child-program/child-program.sql
Normal file
File diff suppressed because it is too large
Load Diff
50
itbaima-child-program/docker-compose.yml
Normal file
50
itbaima-child-program/docker-compose.yml
Normal file
@ -0,0 +1,50 @@
|
||||
networks:
|
||||
work:
|
||||
driver: bridge
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0.40
|
||||
container_name: mysql
|
||||
environment:
|
||||
- MYSQL_DATABASE=child-program
|
||||
- MYSQL_ROOT_PASSWORD=123456
|
||||
- TZ=Asia/Shanghai
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
||||
- ./child-program.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
networks:
|
||||
- work
|
||||
redis:
|
||||
image: redis
|
||||
container_name: redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./redis:/data
|
||||
networks:
|
||||
- work
|
||||
itbaima-child-program-server:
|
||||
image: itbaimastydu/itbaima-child-program-server:1.0.0
|
||||
container_name: itbaima-child-program-server
|
||||
ports:
|
||||
- "8080:80"
|
||||
environment:
|
||||
- MYSQL_URL=jdbc:mysql://mysql:3306/child-program?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
- REDIS_HOST=redis
|
||||
restart: always
|
||||
networks:
|
||||
- work
|
||||
depends_on:
|
||||
- mysql
|
||||
- redis
|
||||
itbaima-child-program-web:
|
||||
image: itbaimastydu/itbaima-child-program-web:1.0.10
|
||||
container_name: itbaima-child-program-web
|
||||
environment:
|
||||
- API_BASE_URL=http://10.211.55.4:8080
|
||||
ports:
|
||||
- "80:80"
|
||||
networks:
|
||||
- work
|
Loading…
x
Reference in New Issue
Block a user