1. 使用docker的启动 mysql 和 redis

2. 自动注入sql脚本,增加配置文件指定mysql和redis地址
pull/765/head
guo.lin 2022-08-21 16:25:23 +08:00
parent 1c141bfc5d
commit 9716127ee5
4 changed files with 22 additions and 1 deletions

View File

@ -17,6 +17,8 @@
**账号密码:** `admin / 123456`
docker 启动时 请在 wsl 获取对应的服务器的ip
填写到 eladmin\eladmin-system\src\main\resources\application.properties 路径下
#### 项目源码
| | 后端源码 | 前端源码 |

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
version: "3"
services:
redis:
image: 'redis:6.0'
ports:
- "6379:6379"
mysql:
image: 'mysql:5.7.35'
environment:
- MYSQL_ROOT_PASSWORD=123456
volumes:
- ./sql/eladmin.sql:/docker-entrypoint-initdb.d/init_mysal.sql
ports:
- "3306:3306"

View File

@ -0,0 +1,3 @@
# this ip should in ifconfig and in eth0
# DB_HOST = 172.17.40.47
# REDIS_HOST = 172.17.40.47

View File

@ -13,10 +13,11 @@
Date: 05/09/2020 10:49:19
*/
CREATE database eladmin;
USE eladmin;
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for code_column_config
-- ----------------------------