代码拉取完成,页面将自动刷新
同步操作将从 HuaweiCloudDeveloper/ saas-housekeeper 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3.3'
## 本地调试连接rabbitmq,mysql组件,需要将docker网络映射至主机。在host文件增加配置: 127.0.0.1 kubernetes.docker.internal
services:
#rabbitmq
rabbitmq:
image: rabbitmq:3.9-alpine
container_name: rabbitmq
hostname: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
expose:
- 5672
volumes:
- type: bind
source: ./rabbitmq-enabled-plugins
target: /etc/rabbitmq/enabled_plugins
- type: bind
source: ./rabbitmq.config
target: /etc/rabbitmq/rabbitmq.config
- type: bind
source: ./rabbitmq-defs.json
target: /etc/rabbitmq/rabbitmq-defs.json
deploy:
resources:
limits:
cpus: '0.25'
memory: 200M
reservations:
memory: 100M
#mysql
mysql:
image: mysql:8.0
container_name: mysql
hostname: mysql
volumes:
- ./my.cnf:/etc/my.cnf #加载mysql的配置文件
- ./db:/docker-entrypoint-initdb.d #初始化mysql脚本
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
expose:
- 3306
deploy:
resources:
limits:
cpus: '0.25'
memory: 600M
reservations:
memory: 600M
#eureka
eureka-server:
build: ./saas-housekeeper-eureka
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
ports:
- "8761:8761"
depends_on:
- rabbitmq
- mysql
environment:
WAIT_HOSTS: rabbitmq:5672, mysql:3306
#config
config-server:
container_name: config-server
build: ./saas-housekeeper-config-server
ports:
- "3344:3344"
expose:
- 3344
depends_on:
- eureka-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: eureka:8761
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#tenantinfo
tenantinfo:
build: ./saas-housekeeper-tenantinfo-service
ports:
- "8500:8500"
expose:
- 8500
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#userinfo
userinfo:
build: ./saas-housekeeper-userinfo-service
ports:
- "9093:9093"
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#task
task:
build: ./saas-housekeeper-task-service
ports:
- "8090:8090"
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#order
order:
build: ./saas-housekeeper-order-service
ports:
- "8300:8300"
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#publish
publish:
build: ./saas-housekeeper-publish-service
ports:
- "8080:8080"
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#message
message:
build: ./saas-housekeeper-message-service
ports:
- "8175:8175"
depends_on:
- config-server
- mysql
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#gateway
gateway:
build: ./saas-housekeeper-gateway
ports:
- "9090:9090"
expose:
- 9090
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#event-tracking
event-tracking:
build: ./saas-housekeeper-event-tracking
ports:
- "8600:8600"
expose:
- 8600
depends_on:
- config-server
deploy:
resources:
limits:
cpus: '0.25'
memory: 250M
reservations:
memory: 250M
environment:
WAIT_HOSTS: config-server:3344, mysql:3306
SPRING_PROFILES_ACTIVE: dev
EUREKA_URI: http://eurekaAdmin:123456@eureka-server:8761/eureka
CONFIG_SERVER: http://config-server:3344
RABBIT_HOST: rabbitmq
LANG: C.UTF-8
MYSQL_HOST: mysql
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: mysql
REDIS_HOST: redis
#frontend
frontend:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
- tenantinfo
- event-tracking
- gateway
deploy:
resources:
limits:
cpus: '0.25'
memory: 60M
reservations:
memory: 60M
environment:
WAIT_HOSTS: tenantinfo:8500, event-tracking:8600, gateway:9090
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。