代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。