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 env_file: - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动 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 env_file: - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动 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 env_file: - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动 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 ports: - 9004:8004 container_name: happy-cloud-xxl-job hostname: happy-cloud-xxl-job image: happy-cloud-xxl-job env_file: - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动 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 env_file: - /mnt/product/cloud/happycloud/java_opts.env #指定配置文件启动 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 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