1 Star 0 Fork 62

李萍/基于RBAC的后台管理系统教学案例

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
张齐勋 提交于 2023-11-14 16:34 . update
version: "3.4"
services:
mysql:
container_name: ssadmin-mysql
image: mysql:8
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-root}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123456}
volumes:
- mysql:/var/lib/mysql/
- ./sql/ssadmin_init.sql:/docker-entrypoint-initdb.d/ssadmin_init.sql:ro
redis:
container_name: ssadmin-redis
image: redis:6-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis:/data
server:
container_name: ssadmin-server
build:
context: ./ssadmin-server/
image: ssadmin-server
restart: unless-stopped
ports:
- "28080:28080"
environment:
SPRING_PROFILES_ACTIVE: local
JAVA_OPTS:
${JAVA_OPTS:-
-Xms512m
-Xmx512m
-Djava.security.egd=file:/dev/./urandom
}
ARGS:
--spring.datasource.url=${DATASOURCE_URL:-jdbc:mysql://ssadmin-mysql:3306/ssadmin?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true}
--spring.datasource.username=${DATASOURCE_USERNAME:-root}
--spring.datasource.password=${DATASOURCE_PASSWORD:-123456}
--spring.redis.host=${REDIS_HOST:-ssadmin-redis}
depends_on:
- mysql
- redis
web:
container_name: ssadmin-web
build:
context: ./ssadmin-web
args:
NODE_ENV:
ENV=${NODE_ENV:-production}
VUE_APP_TITLE=${VUE_APP_TITLE:-SSADMIN管理系统}
image: ssadmin-web
restart: unless-stopped
ports:
- "80:80"
depends_on:
- server
volumes:
mysql:
driver: local
redis:
driver: local
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/li_ping111/ssadmin.git
git@gitee.com:li_ping111/ssadmin.git
li_ping111
ssadmin
基于RBAC的后台管理系统教学案例
master

搜索帮助