代码拉取完成,页面将自动刷新
version: "3.4"
services:
mysql:
container_name: rbac-mysql
image: mysql:8
restart: unless-stopped
tty: true
ports:
- "3310:3306"
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-root}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-Zhaotianxiang74#}
volumes:
- mysql:/var/lib/mysql/
- ./sql/rbac.sql:/docker-entrypoint-initdb.d/rbac.sql:ro
redis:
container_name: rabc-redis
image: redis:6-alpine
restart: unless-stopped
ports:
- "6380:6379"
volumes:
- redis:/data
server:
container_name: rbac-backend
build:
context: ./rbac-backend/
image: rbac-backend
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://rbac-mysql:3306/rbac?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true}
--spring.datasource.username=${DATASOURCE_USERNAME:-root}
--spring.datasource.password=${DATASOURCE_PASSWORD:-Zhaotianxiang74#}
--spring.redis.host=${REDIS_HOST:-rbac-redis}
depends_on:
- mysql
- redis
web:
container_name: rbac-front
build:
context: ./rbac-front
args:
NODE_ENV:
ENV=${NODE_ENV:-production}
VUE_APP_TITLE=${VUE_APP_TITLE:-RBAC管理系统}
image: rbac-front
restart: unless-stopped
ports:
- "85:80"
depends_on:
- server
volumes:
mysql:
driver: local
redis:
driver: local
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。