添加完整IDE配置

This commit is contained in:
Lei Xu 2022-02-15 15:22:52 +08:00
parent ecbb9d78ac
commit 1b372f7387
4 changed files with 47 additions and 5 deletions

3
.ide/.gitignore vendored
View File

@ -1 +1,2 @@
/.temp/
/.temp/
/.data/

View File

@ -8,7 +8,8 @@ workspace:
ports:
webide: 6800
ssh: 6822
application: 3001
ruoyi-ui: 8000
ruoyi-admin: 8080
ide-type: vscode
volumes:
git-config: true
@ -21,13 +22,53 @@ workspace:
ROOT_PASSWORD: root123
LOCAL_USER_PASSWORD: root123
ports:
- 3001:3001
- 8080:8080
- 8000:80
- 6822:22
- 6800:3000
volumes:
- .:/home/project
networks:
- smartide-network
ruoyi-db:
image: registry.cn-hangzhou.aliyuncs.com/boathouse/mysql:5.6
command:
- --default-authentication-plugin=mysql_native_password
restart: always
expose:
- 3306
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- './.ide/.data/mysql-data:/var/lib/mysql'
networks:
- boathouse-dev-network
ruoyi-phpmyadmin:
image: registry.cn-hangzhou.aliyuncs.com/boathouse/phpmyadmin:5.0.4-apache
restart: always
expose:
- 8090
ports:
- 8090:80
environment:
PMA_ARBITRARY: "1"
networks:
- boathouse-dev-network
gruoyi-redis:
image: registry.cn-hangzhou.aliyuncs.com/smartide/redis:6.0.6
container_name: gva-redis
restart: always
expose:
- 6379
ports:
- "6379:6379"
networks:
- gva-dev-network
networks:
smartide-network:
external: true

View File

@ -6,7 +6,7 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://ruoyi-db:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: password
# 从库数据源

View File

@ -62,7 +62,7 @@ spring:
# redis 配置
redis:
# 地址
host: localhost
host: gruoyi-redis
# 端口默认为6379
port: 6379
# 数据库索引