1 Star 0 Fork 0

张军钊/RBAC系统课堂Demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
张军钊 提交于 2023-11-30 18:47 . 删除不必要的容器
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/rbac_init.sql:/docker-entrypoint-initdb.d/rbac_init.sql:ro
networks:
- my_network
redis:
container_name: ssadmin-redis
image: redis:6-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis:/data
networks:
- my_network
server:
container_name: ssadmin-server
build:
context: ./serve/
image: ssadmin-server
restart: unless-stopped
ports:
- "28080:28080"
networks:
- my_network
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/root?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: ./web
image: ssadmin-web
restart: unless-stopped
ports:
- "80:80"
networks:
- my_network
depends_on:
- server
volumes:
mysql:
driver: local
redis:
driver: local
networks:
my_network:
driver: bridge
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang-junzhao/rbac-system-classroom-demo.git
git@gitee.com:zhang-junzhao/rbac-system-classroom-demo.git
zhang-junzhao
rbac-system-classroom-demo
RBAC系统课堂Demo
master

搜索帮助