增加新服务
This commit is contained in:
parent
0010b16233
commit
9e1401a651
21
README.md
21
README.md
|
@ -12,6 +12,10 @@ chassis 微服务基座依赖的服务
|
||||||
- Logstash
|
- Logstash
|
||||||
- Kibana
|
- Kibana
|
||||||
- Fluentd
|
- Fluentd
|
||||||
|
- MiddleWares
|
||||||
|
- RabbitMQ
|
||||||
|
- Mysql
|
||||||
|
- ……
|
||||||
|
|
||||||
## 启动 Metrics 相关服务
|
## 启动 Metrics 相关服务
|
||||||
|
|
||||||
|
@ -31,6 +35,23 @@ grafana 的配置在:./service_configs/admin_service/grafana/xxxx.json (根
|
||||||
`docker-compose -f docker-compose-logging.yml up -d --build --remove-orphans`
|
`docker-compose -f docker-compose-logging.yml up -d --build --remove-orphans`
|
||||||
|
|
||||||
|
|
||||||
|
## 启动 RabbitMQ
|
||||||
|
|
||||||
|
|
||||||
|
启动服务的命令:
|
||||||
|
|
||||||
|
`docker-compose -f docker-compose-rabbitmq.yml up -d --build --remove-orphans`
|
||||||
|
|
||||||
|
|
||||||
|
## 启动 Mysql
|
||||||
|
|
||||||
|
|
||||||
|
启动服务的命令:
|
||||||
|
|
||||||
|
`docker-compose -f docker-compose-mysql.yml up -d --build --remove-orphans`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- Metrics
|
- Metrics
|
||||||
|
|
|
@ -3,6 +3,8 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
kibana:
|
kibana:
|
||||||
image: kibana:8.7.1
|
image: kibana:8.7.1
|
||||||
|
hostname: "kibana"
|
||||||
|
container_name: "kibana"
|
||||||
ports:
|
ports:
|
||||||
- "5610:5601"
|
- "5610:5601"
|
||||||
networks:
|
networks:
|
||||||
|
@ -12,6 +14,7 @@ services:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:8.7.1
|
image: elasticsearch:8.7.1
|
||||||
hostname: "elasticsearch"
|
hostname: "elasticsearch"
|
||||||
|
container_name: "elasticsearch"
|
||||||
environment:
|
environment:
|
||||||
- "discovery.type=single-node" #单机模式启动
|
- "discovery.type=single-node" #单机模式启动
|
||||||
- "TZ=Asia/Shanghai" # 设置时区
|
- "TZ=Asia/Shanghai" # 设置时区
|
||||||
|
@ -24,6 +27,8 @@ services:
|
||||||
networks:
|
networks:
|
||||||
chassis_agent_logging:
|
chassis_agent_logging:
|
||||||
fluentd:
|
fluentd:
|
||||||
|
hostname: "fluentd"
|
||||||
|
container_name: "fluentd"
|
||||||
build:
|
build:
|
||||||
context: ./fluentd
|
context: ./fluentd
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -3,6 +3,8 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
statsd-agent:
|
statsd-agent:
|
||||||
image: statsd/statsd:latest
|
image: statsd/statsd:latest
|
||||||
|
hostname: "statsd-agent"
|
||||||
|
container_name: "statsd-agent"
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8125:8125/udp"
|
- "8125:8125/udp"
|
||||||
|
@ -14,6 +16,7 @@ services:
|
||||||
statsd-exporter:
|
statsd-exporter:
|
||||||
image: prom/statsd-exporter:latest
|
image: prom/statsd-exporter:latest
|
||||||
hostname: "statsd-exporter"
|
hostname: "statsd-exporter"
|
||||||
|
container_name: "statsd-exporter"
|
||||||
command: "--statsd.mapping-config=/tmp/statsd_mapping.yml"
|
command: "--statsd.mapping-config=/tmp/statsd_mapping.yml"
|
||||||
ports:
|
ports:
|
||||||
- "9102:9102"
|
- "9102:9102"
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: mysql:8
|
||||||
|
container_name: 'mysql'
|
||||||
|
hostname: 'mysql'
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
- mysql_data:/var/lib/mysql
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-root}
|
||||||
|
- MYSQL_USER=user
|
||||||
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-user}
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mysql_data:
|
||||||
|
driver: local
|
|
@ -0,0 +1,25 @@
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
rabbitmq:
|
||||||
|
image: rabbitmq:3-management
|
||||||
|
container_name: 'rabbitmq'
|
||||||
|
hostname: 'rabbitmq'
|
||||||
|
ports:
|
||||||
|
- "5672:5672"
|
||||||
|
- "15672:15672"
|
||||||
|
- "25672:25672"
|
||||||
|
volumes:
|
||||||
|
- rabbitmq_data:/var/lib/rabbitmq
|
||||||
|
- rabbitmq_log:/var/log/rabbitmq
|
||||||
|
environment:
|
||||||
|
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER:-admin}
|
||||||
|
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-admin}
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
rabbitmq_data:
|
||||||
|
driver: local
|
||||||
|
rabbitmq_log:
|
||||||
|
driver: local
|
Loading…
Reference in New Issue