代码拉取完成,页面将自动刷新
同步操作将从 GuYiTan/online-exam 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '2'
services:
# MySQL
online-exam-mysql:
image: mysql:5.7
volumes:
- data:/var/lib/mysql
# 自动执行初始化脚本
- ./deploy/mysql:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: 11 # root账户的密码
restart: always
container_name: online-exam-mysql
ports:
- 3306:3306
# redis
online-exam-redis:
image: redis:5.0
ports:
- 6379:6379
restart: always
container_name: online-exam-redis
hostname: online-exam-redis
# rabbitMq
online-exam-rabbit-mq:
image: rabbitmq:management-alpine
container_name: rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
restart: always
ports:
- "5672:5672"
- "15672:15672"
# fastDfs-tracker
online-exam-fdfs-tracker:
image: morunchang/fastdfs
ports:
- 22122:22122
entrypoint: sh tracker.sh
hostname: online-exam-fdfs-tracker
# fastDfs-storage
online-exam-fdfs-storage:
build: ./deploy/fastDFS/storage
ports:
- 8088:8080
- 23000:23000
depends_on:
- online-exam-fdfs-tracker
volumes:
- ./deploy/fastDFS/data:/data/fast_data
environment:
GROUP_NAME: group1
TRACKER_IP: online-exam-fdfs-tracker:22122
LOG_LEVEL: debug
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-fdfs-storage:0.1.0
hostname: online-exam-fdfs-storage
# 注册中心
online-exam-eureka:
restart: always
ports:
- 8761:8761
environment:
- SPRING_PROFILES_ACTIVE=test
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8769
- CONFIG_LABEL=test
container_name: online-exam-eureka
hostname: online-exam-eureka
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-eureka:0.1.0
# 配置中心
online-exam-config:
restart: always
ports:
- 8769:8769
depends_on:
- online-exam-eureka
links:
- online-exam-eureka:online-exam-eureka
environment:
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8761
container_name: online-exam-config
hostname: online-exam-config
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-config:0.1.0
volumes:
data:
driver: local
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。