| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- version: '3.8'
- services:
- happy-cloud-gateway:
- build:
- context: /mnt/product/cloud/jar/happy-cloud-gateway
- restart: always
- ports:
- - 9999:9999
- container_name: happy-cloud-gateway
- hostname: happy-cloud-gateway
- image: happy-cloud-gateway
- volumes:
- - /mnt/product/cloud/jar/happy-cloud-gateway/log:/cloud/logs/happy-cloud-gateway #挂载logback日志
- environment:
- - "TZ=Asia/Shanghai"
- networks:
- - custom_net
- happy-cloud-system:
- build:
- context: /mnt/product/cloud/jar/happy-cloud-system-biz
- restart: always
- container_name: happy-cloud-system
- hostname: happy-cloud-system
- image: happy-cloud-system
- volumes:
- - /mnt/product/cloud/jar/happy-cloud-system-biz/log:/cloud/logs/happy-cloud-system-biz #挂载logback日志
- environment:
- - "TZ=Asia/Shanghai"
- networks:
- - custom_net
- happy-cloud-wisdom:
- build:
- context: /mnt/product/cloud/jar/happy-cloud-wisdom-biz
- restart: always
- container_name: happy-cloud-wisdom
- hostname: happy-cloud-wisdom
- image: happy-cloud-wisdom
- volumes:
- - /mnt/product/cloud/jar/happy-cloud-wisdom-biz/log:/cloud/logs/happy-cloud-wisdom-biz
- environment:
- - "TZ=Asia/Shanghai"
- networks:
- - custom_net
- #分布式定时任务
- happy-cloud-xxl-job:
- build:
- context: /mnt/product/cloud/jar/happy-cloud-xxl-job
- restart: always
- container_name: happy-cloud-xxl-job
- hostname: happy-cloud-xxl-job
- image: happy-cloud-xxl-job
- volumes:
- - /mnt/product/cloud/jar/happy-cloud-xxl-job/log:/cloud/logs/happy-cloud-xxl-job
- environment:
- - "TZ=Asia/Shanghai"
- networks:
- - custom_net
- # happy-cloud-auth:
- # build:
- # context: /mnt/product/cloud/jar/happy-cloud-auth
- # restart: always
- # container_name: happy-cloud-auth
- # hostname: happy-cloud-auth
- # image: happy-cloud-auth
- # volumes:
- # - /mnt/product/cloud/jar/happy-cloud-auth/log:/cloud/logs/happy-cloud-auth
- # environment:
- # - "TZ=Asia/Shanghai"
- # networks:
- # - custom_net
- #
- # #sentinel限流
- # happy-cloud-sentinel:
- # build:
- # context: /mnt/product/cloud/jar/happy-cloud-sentinel
- # restart: always
- # ports:
- # - 8888:8888
- # env_file:
- # - /mnt/product/cloud/sentinel/env/sentinel.env #指定配置文件启动
- # volumes:
- # - /mnt/product/cloud/jar/happy-cloud-sentinel/log:/root/logs/csp #日志挂载
- # container_name: happy-cloud-sentinel
- # hostname: happy-cloud-sentinel
- # image: happy-cloud-sentinel
- # networks:
- # - custom_net
- #
- # happy-cloud-monitor:
- # build:
- # context: /mnt/product/cloud/jar/happy-cloud-monitor
- # restart: always
- # ports:
- # - 9111:9111
- # container_name: happy-cloud-monitor
- # hostname: happy-cloud-monitor
- # image: happy-cloud-monitor
- # volumes:
- # - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
- # environment:
- # - "TZ=Asia/Shanghai"
- # networks:
- # - custom_net
- networks:
- custom_net:
- external:
- name: app_net
|