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