feat: 修改 rabbitmq 服务端口参数 (#199)

This commit is contained in:
zhengkunwang223 2023-07-05 18:43:41 +08:00 committed by GitHub
parent 0786b375d6
commit 70e40e4242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 11 additions and 369 deletions

View File

@ -1,16 +0,0 @@
additionalProperties:
formFields:
- default: 8030
envKey: PANEL_APP_PORT_HTTP_WEB
labelEn: Port
labelZh: WEB端口
required: true
rule: paramPort
type: number
- default: 9030
envKey: PANEL_APP_PORT_HTTP_query_port
labelEn: Port
labelZh: query端口
required: true
rule: paramPort
type: number

View File

@ -1,41 +0,0 @@
version: '3'
services:
docker-fe-01:
image: "apache/doris:2.0.0_alpha-fe-x86_64"
container_name: "doris-fe-01"
hostname: "fe-01"
environment:
- FE_SERVERS=fe1:172.20.80.2:9010
- FE_ID=1
ports:
- ${PANEL_APP_PORT_HTTP_WEB}:8030
- ${PANEL_APP_PORT_HTTP_query_port}:9030
volumes:
- ./data/fe-01/doris-meta:/opt/apache-doris/fe/doris-meta
- ./data/fe-01/log:/opt/apache-doris/fe/log
networks:
doris_net:
ipv4_address: 172.20.80.2
docker-be-01:
image: "apache/doris:2.0.0_alpha-be-x86_64"
container_name: "doris-be-01"
hostname: "be-01"
depends_on:
- docker-fe-01
environment:
- FE_SERVERS=fe1:172.20.80.2:9010
- BE_ADDR=172.20.80.5:9050
ports:
- 8041:8040
volumes:
- ./data/be-01/storage:/opt/apache-doris/be/storage
- ./data/be-01/script:/docker-entrypoint-initdb.d
- ./data/be-01/log:/opt/apache-doris/be/log
networks:
doris_net:
ipv4_address: 172.20.80.5
networks:
doris_net:
ipam:
config:
- subnet: 172.20.80.0/24

View File

@ -1,20 +0,0 @@
Apache Doris 是一个基于 MPP 架构的高性能、实时的分析型数据库以极速易用的特点被人们所熟知仅需亚秒级响应时间即可返回海量数据下的查询结果不仅可以支持高并发的点查询场景也能支持高吞吐的复杂分析场景。基于此Apache Doris 能够较好的满足报表分析、即席查询、统一数仓构建、数据湖联邦查询加速等使用场景用户可以在此之上构建用户行为分析、AB 实验平台、日志检索分析、用户画像分析、订单分析等应用。
Apache Doris is a high-performance, real-time analytical database based on MPP architecture, known for its extreme speed and ease of use. It only requires a sub-second response time to return query results under massive data and can support not only high-concurrent point query scenarios but also high-throughput complex analysis scenarios. All this makes Apache Doris an ideal tool for scenarios including report analysis, ad-hoc query, unified data warehouse, and data lake query acceleration. On Apache Doris, users can build various applications, such as user behavior analysis, AB test platform, log retrieval analysis, user portrait analysis, and order analysis.
前期环境准备
需在宿主机执行如下命令
`sysctl -w vm.max_map_count=2000000`
查看 FE 运行状态
你可以通过下面的命令来检查 Doris 是否启动成功
`curl http://127.0.0.1:8030/api/bootstrap`
这里 IP 和 端口分别是 FE 的 IP 和 http_port默认8030如果是你在 FE 节点执行,直接运行上面的命令即可。
如果返回结果中带有 "msg":"success" 字样,则说明启动成功。
你也可以通过 Doris FE 提供的Web UI 来检查,在浏览器里输入地址
http:// fe_ip:8030
使用mysql客户端连接
初始账号: root
初始密码: 留空

View File

@ -1,19 +0,0 @@
name: ApacheDoris
tags:
- 数据库
title: 基于 MPP 架构的高性能、实时的分析型数据库
type: 数据库
description: Apache Doris 是一个基于 MPP 架构的高性能、实时的分析型数据库
additionalProperties:
key: apache-doris
name: Apache Doris
tags:
- Database
shortDescZh: 基于 MPP 架构的高性能、实时的分析型数据库
shortDescEn: a high-performance, real-time analytical database based on MPP architecture
type: tool
crossVersionUpdate: false
limit: 1
website: https://doris.apache.org/
github: https://github.com/apache/doris
document: https://doris.apache.org/zh-CN/docs/dev/get-starting/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

View File

@ -1,9 +0,0 @@
additionalProperties:
formFields:
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -1,221 +0,0 @@
version: "3"
services:
backend:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
configurator:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: none
entrypoint:
- bash
- -c
command:
- >
ls -1 apps > sites/apps.txt;
bench set-config -g db_host $$DB_HOST;
bench set-config -gp db_port $$DB_PORT;
bench set-config -g redis_cache "redis://$$REDIS_CACHE";
bench set-config -g redis_queue "redis://$$REDIS_QUEUE";
bench set-config -g redis_socketio "redis://$$REDIS_SOCKETIO";
bench set-config -gp socketio_port $$SOCKETIO_PORT;
environment:
DB_HOST: db
DB_PORT: "3306"
REDIS_CACHE: redis-cache:6379
REDIS_QUEUE: redis-queue:6379
REDIS_SOCKETIO: redis-socketio:6379
SOCKETIO_PORT: "9000"
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
create-site:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: none
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
entrypoint:
- bash
- -c
command:
- >
wait-for-it -t 120 db:3306;
wait-for-it -t 120 redis-cache:6379;
wait-for-it -t 120 redis-queue:6379;
wait-for-it -t 120 redis-socketio:6379;
export start=`date +%s`;
until [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"` ]] && \
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"` ]] && \
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_queue // empty"` ]];
do
echo "Waiting for sites/common_site_config.json to be created";
sleep 5;
if (( `date +%s`-start > 120 )); then
echo "could not find sites/common_site_config.json with required keys";
exit 1
fi
done;
echo "sites/common_site_config.json found";
bench new-site frontend --no-mariadb-socket --admin-password=admin --db-root-password=admin --install-app erpnext --set-default;
db:
image: mariadb:10.6
healthcheck:
test: mysqladmin ping -h localhost --password=admin
interval: 1s
retries: 15
deploy:
restart_policy:
condition: on-failure
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --skip-character-set-client-handshake
- --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
environment:
MYSQL_ROOT_PASSWORD: admin
volumes:
- ./data/db-data:/var/lib/mysql
frontend:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
command:
- nginx-entrypoint.sh
environment:
BACKEND: backend:8000
FRAPPE_SITE_NAME_HEADER: frontend
SOCKETIO: websocket:9000
UPSTREAM_REAL_IP_ADDRESS: 127.0.0.1
UPSTREAM_REAL_IP_HEADER: X-Forwarded-For
UPSTREAM_REAL_IP_RECURSIVE: "off"
PROXY_READ_TIMEOUT: 120
CLIENT_MAX_BODY_SIZE: 50m
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
ports:
- ${PANEL_APP_PORT_HTTP}:8080
queue-default:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
command:
- bench
- worker
- --queue
- default
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
queue-long:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
command:
- bench
- worker
- --queue
- long
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
queue-short:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
command:
- bench
- worker
- --queue
- short
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
redis-queue:
image: redis:6.2-alpine
deploy:
restart_policy:
condition: on-failure
volumes:
- ./data/redis-queue-data:/data
redis-cache:
image: redis:6.2-alpine
deploy:
restart_policy:
condition: on-failure
volumes:
- ./data/redis-cache-data:/data
redis-socketio:
image: redis:6.2-alpine
deploy:
restart_policy:
condition: on-failure
volumes:
- ./data/redis-socketio-data:/data
scheduler:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
command:
- bench
- schedule
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
websocket:
image: frappe/erpnext:v14.28.1
deploy:
restart_policy:
condition: on-failure
command:
- node
- /home/frappe/frappe-bench/apps/frappe/socketio.js
volumes:
- ./data/sites:/home/frappe/frappe-bench/sites
- ./data/logs:/home/frappe/frappe-bench/logs
volumes:
db-data:
redis-queue-data:
redis-cache-data:
redis-socketio-data:
sites:
logs:

View File

@ -1,21 +0,0 @@
ERPNext as a monolith includes the following areas for managing businesses:
Accounting
Warehouse Management
CRM
Sales
Purchase
HRMS
Project Management
Support
Asset Management
Quality Management
Manufacturing
Website Management
Customize ERPNext
And More
ERPNext is built on the Frappe Framework, a full-stack web app framework built with Python & JavaScript.
---
Wait for 5 minutes for ERPNext site to be created or check container logs before opening browser on port 8080. (username: , password: create-siteAdministratoradmin)

View File

@ -1,19 +0,0 @@
name: erpnext
tags:
- 工具
title: 开源 ERP
type: 工具
description: The most agile ERP on the planet
additionalProperties:
key: erpnext
name: erpnext
tags:
- Tool
shortDescZh: 开源 ERP
shortDescEn: OpenSource ERP
type: tool
crossVersionUpdate: false
limit: 1
website: https://erpnext.com/
github: https://github.com/frappe/erpnext
document: https://docs.erpnext.com/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 745 B

View File

@ -15,8 +15,16 @@ additionalProperties:
- default: 15672
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
labelEn: Dashboard Port
labelZh: Dashboard 端口
required: true
rule: paramPort
type: number
- default: 5672
edit: true
envKey: PANEL_APP_PORT_SERVICE
labelEn: Service Port
labelZh: 服务端口
required: true
rule: paramPort
type: number

View File

@ -4,7 +4,7 @@ services:
image: rabbitmq:3.12.1-management-alpine
container_name: ${CONTAINER_NAME}
ports:
- 5672:5672
- ${PANEL_APP_PORT_SERVICE}:5672
- ${PANEL_APP_PORT_HTTP}:15672
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}