加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-services.yml 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
GuYiTan 提交于 2019-02-28 09:13 . 优化
version: '2'
services:
# 网关
online-exam-gateway:
restart: always
ports:
- 9999:9999
environment:
# 环境变量配置
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8765
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8888
- AUTH_HOST=online-exam-auth
- AUTH_PORT=3000
- 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:
- 4000:4000
environment:
# 环境变量配置
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8765
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8888
- AUTH_HOST=online-exam-auth
- AUTH_PORT=3000
- 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:
- 35010:35010
environment:
# 环境变量配置
- SPRING_PROFILES_ACTIVE=test
- EUREKA_HOST=online-exam-eureka
- EUREKA_PORT=8765
- CONFIG_HOST=online-exam-config
- CONFIG_PORT=8888
- AUTH_HOST=online-exam-auth
- AUTH_PORT=3000
- 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化