version: '3.8' services: happy-cloud-gateway: build: context: ../../../happy-cloud-gateway restart: always ports: - 9999:9999 container_name: happy-cloud-gateway hostname: happy-cloud-gateway image: happy-cloud-gateway env_file: - ../../../doc/happycloud/java_opts.env #指定配置文件启动 environment: - "TZ=Asia/Shanghai" networks: - custom_net happy-cloud-system: build: context: ../../../happy-cloud-system/happy-cloud-system-biz restart: always container_name: happy-cloud-system hostname: happy-cloud-system image: happy-cloud-system env_file: - ../../../doc/happycloud/java_opts.env #指定配置文件启动 environment: - "TZ=Asia/Shanghai" networks: - custom_net happy-cloud-wisdom: build: context: ../../../happy-cloud-wisdom/happy-cloud-wisdom-biz restart: always container_name: happy-cloud-wisdom hostname: happy-cloud-wisdom image: happy-cloud-wisdom env_file: - ../../../doc/happycloud/java_opts.env #指定配置文件启动 environment: - "TZ=Asia/Shanghai" networks: - custom_net #分布式定时任务 happy-cloud-xxl-job: build: context: ../../../happy-cloud-xxl-job/happy-cloud-xxl-job-admin restart: always ports: - 9004:8004 container_name: happy-cloud-xxl-job hostname: happy-cloud-xxl-job image: happy-cloud-xxl-job env_file: - ../../../doc/happycloud/java_opts.env #指定配置文件启动 environment: - "TZ=Asia/Shanghai" networks: - custom_net happy-cloud-auth: build: context: ../../../happy-cloud-auth restart: always container_name: happy-cloud-auth hostname: happy-cloud-auth image: happy-cloud-auth env_file: - ../../../doc/happycloud/java_opts.env #指定配置文件启动 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 # env_file: # - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动 # 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