# PROJECT: 康来生物有限公司kicc(智慧冷链)分布式架构平台 # VERSION: 1.0.0 # Author: 康来生物科技有限公司-王翔 # https://support.websoft9.com/docs/docker/zh/solution-compose.html#command version: '3' services: # 生产环境nacos配置 nacos: image: nacos/nacos-server:2.0.0 hostname: kicc-register container_name: nacos restart: always env_file: - nacos/.env.production ports: - 8848:8848 - 9848:9848 - 9849:9849 volumes: - /usr/software/dockerDatabase/nacos/logs:/home/nacos/logs - /usr/software/dockerDatabase/nacos/data:/home/nacos/data - nacos_conf:/home/nacos/conf # register配置 kicc-register: build: context: ../kicc-register restart: always container_name: kicc-register hostname: kicc-register image: kicc-register ports: - 8848:8848 # 服务端口,注意通过阅读官方文档,发现nacos2.x使用docker部署时一定要保持映射端口一致 # 不一样会出现本地服务访问不了服务端nacos: https://nacos.io/zh-cn/docs/2.0.0-compatibility.html # 经过测试使用docker部署时候,还需要开启对应供应商服务器的防火墙端口,不开第三方外部客户端连不上,会报错 - 9848:9848 - 9849:9849 # gateway配置 kicc-gateway: build: context: ../kicc-gateway container_name: kicc-gateway image: kicc-gateway hostname: kicc-gateway restart: always ports: - 9999:9999 # oauth2.0配置 kicc-auth: build: context: ../kicc-auth container_name: kicc-auth environment: GATEWAY_HOST: 192.168.3.10 image: kicc-auth hostname: kicc-auth restart: always ports: - 3000:3000 # system-biz配置 kicc-system: build: context: ../kicc-platform/kicc-platform-biz/kicc-system-biz container_name: kicc-system environment: GATEWAY_HOST: 192.168.3.10 image: kicc-system-biz hostname: kicc-system restart: always ports: - 4000:4000 # common-biz配置 kicc-common: build: context: ../kicc-platform/kicc-platform-biz/kicc-common-biz container_name: kicc-common environment: GATEWAY_HOST: 192.168.3.10 image: kicc-common-biz hostname: kicc-common restart: always ports: - 8000:8000 # monitor-biz配置 kicc-monitor: build: context: ../kicc-platform/kicc-platform-biz/kicc-monitor-biz container_name: kicc-monitor environment: GATEWAY_HOST: 192.168.3.10 image: kicc-monitor-biz hostname: kicc-monitor restart: always ports: - 6000:6000 # report-biz配置 kicc-report: build: context: ../kicc-platform/kicc-platform-biz/kicc-report-biz container_name: kicc-report environment: GATEWAY_HOST: 192.168.3.10 image: kicc-report-biz hostname: kicc-report restart: always ports: - 8108:8108 # workflow-biz配置 kicc-workflow: build: context: ../kicc-platform/kicc-platform-biz/kicc-workflow-biz container_name: kicc-workflow environment: GATEWAY_HOST: 192.168.3.10 image: kicc-workflow-biz hostname: kicc-workflow restart: always ports: - 8109:8109 # 新建业务工程docker-compose模板 # 注释命名规范:【xxx-biz】 # 名称命名规范:【kicc-xxx】 kicc-template: build: context: ../kicc-platform/kicc-platform-biz/kicc-template-biz container_name: kicc-template image: kicc-template-biz hostname: kicc-template restart: always ports: - 1111:1111 # rocketmq-visual-dashboard配置 kicc-visual-rocketmq: build: context: ../kicc-visual/kicc-rocketmq-dashboard container_name: kicc-visual-rocketmq image: kicc-rocketmq-dashboard hostname: kicc-visual-rocketmq restart: always ports: - 8058:8058 # sentinel-visual-dashboard配置 kicc-visual-sentinel: build: context: ../kicc-visual/kicc-sentinel-dashboard container_name: kicc-visual-sentinel image: kicc-sentinel-dashboard hostname: kicc-visual-sentinel restart: always ports: - 8056:8056 # kicc-visual-job配置 kicc-visual-job: build: context: ../kicc-visual/kicc-xxl-job-admin container_name: kicc-visual-job image: kicc-xxl-job-admin hostname: kicc-visual-job restart: always ports: - 8057:8057 # spring-admin配置 kicc-spring-dashboard: build: context: ../kicc-visual/kicc-spring-dashboard container_name: dolphin-visual-spring restart: always image: dolphin-spring-dashboard hostname: dolphin-visual-spring ports: - 8061:8061 volumes: nacos_conf: driver: local