version: '2' services: jero-boot-mysql: build: context: ../db environment: MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_HOST: '%' TZ: Asia/Shanghai restart: always container_name: jero-boot-mysql command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --explicit_defaults_for_timestamp=true --lower_case_table_names=1 --max_allowed_packet=128M --default-authentication-plugin=caching_sha2_password ports: - 3306:3306 jero-boot-redis: image: redis:5.0 ports: - 6379:6379 restart: always container_name: jero-boot-redis hostname: jero-boot-redis jero-boot-nacos: restart: always image: nacos/nacos-server:1.4.0 container_name: jero-boot-nacos hostname: jero-boot-nacos ports: - 8848:8848 depends_on: - jero-boot-mysql # volumes: # - ./init/docker-startup.sh:/home/nacos/bin/docker-startup.sh # - ./init/application.properties:/home/nacos/conf/application.properties environment: MODE: standalone PREFER_HOST_MODE: hostname SPRING_DATASOURCE_PLATFORM: mysql MYSQL_SERVICE_HOST: jero-boot-mysql MYSQL_SERVICE_PORT: 3306 MYSQL_SERVICE_USER: root MYSQL_SERVICE_PASSWORD: root MYSQL_SERVICE_DB_NAME: nacos jero-boot-gateway: build: context: ./jero-cloud-gateway ports: - 9999:9999 depends_on: - jero-boot-nacos - jero-boot-redis container_name: jero-boot-gateway hostname: jero-boot-gateway jero-boot-system: depends_on: - jero-boot-mysql - jero-boot-redis - jero-boot-nacos build: context: ./jero-cloud-system-start container_name: jero-boot-system hostname: jero-boot-system restart: on-failure environment: - TZ=Asia/Shanghai jero-boot-xxljob: build: context: ./jero-cloud-xxljob ports: - 9080:9080 container_name: jero-boot-xxljob hostname: jero-boot-xxljob # jero-boot-rabbitmq: # # image: rabbitmq:3-management # image: rabbitmq:3 # ports: # - 5672:5672 # # - 15672:15672 # restart: always # container_name: jero-boot-rabbitmq # hostname: jero-boot-rabbitmq