代码拉取完成,页面将自动刷新
同步操作将从 GuYiTan/online-exam 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '2'
services:
# online-exam-web
online-exam-web:
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-web:0.1.0
volumes:
# 挂载nginx的配置文件
- ./deploy/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
container_name: online-exam-web
ports:
- 80:80
restart: always
# online-exam-ui
online-exam-ui:
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-ui:0.1.0
volumes:
# 挂载nginx的配置文件
- ./deploy/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
container_name: online-exam-ui
ports:
- 81:80
restart: always
# 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
# 权限服务
online-exam-auth:
restart: always
ports:
- 8081:8081
depends_on:
- online-exam-eureka
- online-exam-config
- online-exam-rabbit-mq
links:
- online-exam-eureka:online-exam-eureka
- online-exam-config:online-exam-config
environment:
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8761
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8769
- CONFIG_LABEL=test
- ZIPKIN_HOST=
- ZIPKIN_PORT=
- REDIS_HOST=online-exam-redis
- REDIS_PORT=6379
- MYSQL_HOST=online-exam-mysql
- MYSQL_PORT=3306
- RABBIT_MQ_HOST=online-exam-rabbit-mq
- RABBIT_MQ_PORT=5672
- RABBIT_MQ_USERNAME=admin
- RABBIT_MQ_PASSWORD=admin
# entrypoint: sh /wait-for-it.sh online-exam-config:8888 -t 600 --
# command: java -Djava.security.egd=file:/dev/./urandom -jar online-exam-auth.jar
container_name: online-exam-auth
hostname: online-exam-auth
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-auth:0.1.0
# 网关
online-exam-gateway:
restart: always
ports:
- 8000:8000
environment:
# 环境变量配置
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8761
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8769
- CONFIG_LABEL=test
- AUTH_HOST=online-exam-auth
- AUTH_PORT=8081
- ZIPKIN_HOST=
- ZIPKIN_PORT=
- REDIS_HOST=online-exam-redis
- REDIS_PORT=6379
- MYSQL_HOST=online-exam-mysql
- MYSQL_PORT=3306
- RABBIT_MQ_HOST=online-exam-rabbit-mq
- RABBIT_MQ_PORT=5672
- RABBIT_MQ_USERNAME=admin
- RABBIT_MQ_PASSWORD=admin
# 启动顺序
# entrypoint: sh /wait-for-it.sh online-exam-auth:3000 -t 600 --
# command: java -Djava.security.egd=file:/dev/./urandom -jar online-exam-gateway.jar
container_name: online-exam-gateway
hostname: online-exam-gateway
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-gateway:0.1.0
# 用户服务
online-exam-user:
restart: always
ports:
- 8082:8082
environment:
# 环境变量配置
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8761
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8769
- CONFIG_LABEL=test
- AUTH_HOST=online-exam-auth
- AUTH_PORT=8081
- ZIPKIN_HOST=
- ZIPKIN_PORT=
- REDIS_HOST=online-exam-redis
- REDIS_PORT=6379
- MYSQL_HOST=online-exam-mysql
- MYSQL_PORT=3306
- RABBIT_MQ_HOST=online-exam-rabbit-mq
- RABBIT_MQ_PORT=5672
- RABBIT_MQ_USERNAME=admin
- RABBIT_MQ_PASSWORD=admin
- FDFS_HOST=online-exam-fdfs-tracker
- FDFS_PORT=22122
- ATTACHMENT_HOST=http://b.yourdomain.cn:8088
- ATTACHMENT_PORT=80
container_name: online-exam-user
hostname: online-exam-user
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-user:0.1.0
# 考试服务
online-exam-exam:
restart: always
ports:
- 8083:8083
environment:
# 环境变量配置
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8761
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8769
- CONFIG_LABEL=test
- AUTH_HOST=online-exam-auth
- AUTH_PORT=8081
- ZIPKIN_HOST=
- ZIPKIN_PORT=
- REDIS_HOST=online-exam-redis
- REDIS_PORT=6379
- MYSQL_HOST=online-exam-mysql
- MYSQL_PORT=3306
- RABBIT_MQ_HOST=online-exam-rabbit-mq
- RABBIT_MQ_PORT=5672
- RABBIT_MQ_USERNAME=admin
- RABBIT_MQ_PASSWORD=admin
container_name: online-exam-exam
hostname: online-exam-exam
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-exam:0.1.0
# zipkin服务
online-exam-zipkin:
restart: always
ports:
- 9411:9411
environment:
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8761
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8769
- CONFIG_LABEL=test
- REDIS_HOST=online-exam-redis
- REDIS_PORT=6379
- RABBIT_MQ_HOST=online-exam-rabbit-mq
- RABBIT_MQ_PORT=5672
- RABBIT_MQ_USERNAME=admin
- RABBIT_MQ_PASSWORD=admin
container_name: online-exam-zipkin
hostname: online-exam-zipkin
image: registry.cn-hangzhou.aliyuncs.com/online-exam/online-exam-zipkin:0.1.0
volumes:
data:
driver: local
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。