加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
于跃 提交于 2023-12-16 21:22 . rbac sys
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:7.0.12
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis:/data
- ./redis.conf:/user/local/etc/redis/redis.conf
command: ["redis-server", "/user/local/etc/redis/redis.conf"]
server:
container_name: ssadmin-server
build:
context: ./rbac_back/
image: ssadmin-server
restart: unless-stopped
ports:
- "28080:28080"
environment:
SPRING_PROFILES_ACTIVE: server
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: ./rbac
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 助手
尝试更多
代码解读
代码找茬
代码优化