-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: change src package from com.x9x to space.x9x
- Loading branch information
x9x
committed
Dec 18, 2024
1 parent
1e8a0d8
commit 30d6d1f
Showing
359 changed files
with
7,554 additions
and
751 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
radp-archetypes/radp-archetype-lite/docs/api/http-client.env.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dev": { | ||
"name": "value" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
radp-archetypes/radp-archetype-lite/docs/api/http-client.private.env.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dev": { | ||
"name": "value" | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
COMPOSE_PROJECT_NAME=big-market | ||
COMPOSE_FILE=docker-compose-environment.yaml:docker-compose-app.yaml | ||
COMPOSE_PROJECT_NAME=${appName} | ||
COMPOSE_FILE=docker-compose-mysql.yaml:docker-compose-redis.yaml:docker-compose-nginx.yaml:docker-compose-zookeeper.yaml:docker-compose-kafka.yaml:docker-compose-rocketmq.yaml:docker-compose-rabbitmq.yaml:docker-compose-xxl-job.yaml:docker-compose-app.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-db_dashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# 各种可视化 webUI dashboard, 如 redis/kafka 等 | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
services: | ||
# kafka | ||
# 访问地址 http://localhost:8048 | ||
# 账号密码 admin/123456 | ||
# kafka-eagle 可选择性安装, IntelliJ big-data-tools 也可以访问 kafka | ||
kafka-eagle: | ||
image: echo21bash/kafka-eagle:3.0.2 | ||
environment: | ||
KAFKA_EAGLE_ZK_LIST: zookeeper:2181 | ||
volumes: | ||
- ./volumes/kafka/kafka-eagle/system-config.properties:/opt/kafka-eagle/conf/system-config.properties | ||
ports: | ||
- "8048:8048" | ||
depends_on: | ||
- kafka | ||
networks: | ||
- local-network | ||
|
||
# redis | ||
# RedisAdmin https://github.com/joeferner/redis-commander | ||
# 账密 admin/admin | ||
redis-admin: | ||
image: redis-commander:0.8.0 | ||
hostname: redis-commander | ||
restart: unless-stopped | ||
ports: | ||
- "8081:8081" | ||
environment: | ||
- REDIS_HOSTS=local:redis:6379 | ||
- HTTP_USER=admin | ||
- HTTP_PASSWORD=admin | ||
- LANG=C.UTF-8 | ||
- LANGUAGE=C.UTF-8 | ||
- LC_ALL=C.UTF-8 | ||
networks: | ||
- local-network | ||
depends_on: | ||
redis: | ||
condition: service_healthy |
64 changes: 0 additions & 64 deletions
64
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-environment.yaml
This file was deleted.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-kafka.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
services: | ||
# 方式一: 如果使用传统的 zookeeper 模式 | ||
kafka: | ||
image: bitnami/kafka:3.7.0 | ||
ports: | ||
- "9092:9092" | ||
environment: | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092 | ||
# KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://<真实ip地址/云服务器公网ip/本地电脑分配ip>:9092 | ||
# 如果这里使用 kafka:9092, 而不是 ip:9092, 记得在本机配置 hosts | ||
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092 | ||
KAFKA_ENABLE_KRAFT: no | ||
KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
ALLOW_PLAINTEXT_LISTENER: yes | ||
KAFKA_MESSAGE_MAX_BYTES: "2000000" | ||
JMX_PORT: 9999 | ||
TZ: Asia/Shanghai | ||
depends_on: | ||
- zookeeper | ||
networks: | ||
- local-network | ||
|
||
# 方式二: 如果使用 kraft 模式, 不需要 zookeeper | ||
# kafka: | ||
# image: bitnami/kafka:3.9.0 | ||
# ports: | ||
# - "9092:9092" | ||
# restart: unless-stopped | ||
# environment: | ||
# ALLOW_PLAINTEXT_LISTENER: "yes" | ||
# # 注意,你可以在电脑上增加 kafka 的 host 映射ip,或者直接写上服务器ip地址 | ||
# # KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://真实ip地址,云服务器公网ip/本地电脑分配ip:9092 | ||
# KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092 | ||
# KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER | ||
# KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: [email protected]:9093 | ||
# KAFKA_CFG_FETCH_MESSAGE_MAX_BYTES: 524288000 | ||
# KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT | ||
# KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093 | ||
# KAFKA_CFG_LOG_RETENTION_MS: 60000 | ||
# KAFKA_CFG_MAX_REQUEST_SIZE: 524288000 | ||
# KAFKA_CFG_MESSAGE_MAX_BYTES: 524288000 | ||
# KAFKA_CFG_NODE_ID: 0 | ||
# KAFKA_CFG_PARTITION_FETCH_BYTES: 524288000 | ||
# KAFKA_CFG_PROCESS_ROLES: controller,broker | ||
# KAFKA_CFG_REPLICA_FETCH_MAX_BYTES: 524288000 | ||
# KAFKA_HEAP_OPTS: -Xmx512m -Xms256m | ||
# networks: | ||
# - local-network | ||
# extra_hosts: | ||
# - "kafka:host-gateway" |
24 changes: 24 additions & 0 deletions
24
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-mysql.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0.32 | ||
command: --default-authentication-plugin=mysql_native_password | ||
restart: unless-stopped | ||
environment: | ||
TZ: Asia/Shanghai | ||
MYSQL_ROOT_PASSWORD: 123456 | ||
ports: | ||
- "3306:3306" | ||
volumes: | ||
- ./volumes/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d | ||
networks: | ||
- local-network | ||
healthcheck: | ||
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ] | ||
interval: 5s | ||
timeout: 10s | ||
retries: 10 | ||
start_period: 15s |
26 changes: 26 additions & 0 deletions
26
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-nginx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
services: | ||
nginx: | ||
image: nginx:1.21.0-alpine | ||
restart: unless-stopped | ||
volumes: | ||
- ./volumes/nginx/ssl:/etc/nginx/ssl | ||
- ./volumes/nginx/conf/nginx.conf:/etc/nginx/nginx.conf | ||
- ./volumes/nginx/conf/conf.d:/etc/nginx/conf.d | ||
- ./volumes/nginx/logs:/var/log/nginx | ||
- ./volumes/nginx/html:/usr/share/nginx/html:ro | ||
environment: | ||
TZ: Asia/Shanghai | ||
ports: | ||
- "443:443" | ||
- "80:80" | ||
networks: | ||
- local-network | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl -f http://localhost:80 || exit 1"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 3 |
16 changes: 16 additions & 0 deletions
16
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-rabbitmq.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# rabbitmq-plugins enable rabbitmq_management | ||
services: | ||
# 管理后台 http://127.0.0.1:15672 | ||
# 账号密码 admin/admin | ||
rabbitmq: | ||
image: rabbitmq:3.12.9 | ||
restart: unless-stopped | ||
ports: | ||
- "5672:5672" | ||
- "15672:15672" | ||
environment: | ||
RABBITMQ_DEFAULT_USER: admin | ||
RABBITMQ_DEFAULT_PASS: admin | ||
command: rabbitmq-server | ||
volumes: | ||
- ./volumes/rabbitmq/enabled_plugins:/etc/rabbitmq/enabled_plugins |
22 changes: 22 additions & 0 deletions
22
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-redis.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
services: | ||
redis: | ||
image: redis:7.2.0 | ||
restart: unless-stopped | ||
environment: | ||
TZ: Asia/Shanghai | ||
ports: | ||
- "6379:6379" | ||
volumes: | ||
- ./volumes/redis/redis.conf:/usr/local/etc/redis/redis.conf | ||
command: redis-server /usr/local/etc/redis/redis.conf | ||
networks: | ||
- local-network | ||
healthcheck: | ||
test: ["CMD", "redis-cli", "ping"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 3 |
46 changes: 46 additions & 0 deletions
46
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-rocketmq.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
# 单机版Apache RocketMQ, 内置 Dashboard | ||
# 控制台页面 http://localhost:8080 (见 volumes/rocketmq-data/console/conf/application.properties) | ||
# 控制台账密 admin/admin, normal/normal | ||
# 1) amd 使用 https://hub.docker.com/r/xuchengen/rocketmq | ||
# 2) arm 使用 https://hub.docker.com/r/livinphp/rocketmq | ||
# | ||
# 注意修改项; | ||
# 01:data/rocketmq/conf/broker.conf 添加 brokerIP1=127.0.0.1 | ||
# 02:data/console/config/application.properties server.port=9009 - 如果8080端口被占用,可以修改或者添加映射端口 | ||
services: | ||
# amd | ||
# rocketmq: | ||
# image: xuchengen/rocketmq:latest | ||
# restart: unless-stopped | ||
# hostname: rocketmq | ||
# ports: | ||
# - "8080:8080" | ||
# - "9876:9876" | ||
# - "10909:10909" | ||
# - "10911:10911" | ||
# - "10912:10912" | ||
# volumes: | ||
# - ./volumes/rocketmq-data:/home/app/data | ||
# - /etc/localtime:/etc/localtime | ||
# - /var/run/docker.sock:/var/run/docker.sock | ||
# network_mode: host | ||
|
||
# arm | ||
# 提示: 首次启动可能会有问题, 可以多试几次且等待一段时间, 直到 rocketmq_data/rocketmq/store 目录被创建 | ||
rocketmq: | ||
image: livinphp/rocketmq:5.1.0 | ||
ports: | ||
- "8080:8080" | ||
- "9876:9876" | ||
- "10909:10909" | ||
- "10911:10911" | ||
- "10912:10912" | ||
volumes: | ||
- ./volumes/rocketmq_data:/home/app/data | ||
environment: | ||
TZ: "Asia/Shanghai" | ||
NAMESRV_ADDR: "rocketmq:9876" |
27 changes: 27 additions & 0 deletions
27
radp-archetypes/radp-archetype-lite/docs/dev-ops/docker-compose-xxl-job.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
networks: | ||
local-network: | ||
driver: bridge | ||
|
||
services: | ||
# xxl-job 官方文档: https://www.xuxueli.com/xxl-job/ | ||
# http://127.0.0.1:9090/xxl-job-admin admin/123456 - 安装后稍等会访问即可 | ||
# 官网镜像为 xuxueli/xxl-job-admin 但不支持ARM架构【需要自己打包】,所以找了一个 kuschzzp/xxl-job-aarch64:2.4.0 镜像支持 AMD/ARM | ||
# 注意: 在启动 xxl-job 前, 记得先将 xxl-job 的数据库表结构导入到 mysql 中 (xxl-job_data/sql/xxl-job.sql) | ||
xxl-job-admin: | ||
image: kuschzzp/xxl-job-aarch64:2.4.0 | ||
restart: unless-stopped | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- ./volumes/xxl-job_data/logs:/data/applogs | ||
- ./volumes/xxl-job_data/xxl-job:/xxl-job | ||
networks: | ||
- local-network | ||
environment: | ||
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/xxl_job?serverTimezone=UTC&characterEncoding=utf8&autoReconnect=true&serverTimezone=Asia/Shanghai | ||
- SPRING_DATASOURCE_USERNAME=root | ||
- SPRING_DATASOURCE_PASSWORD=123456 | ||
- SERVER_PORT=9090 |
Oops, something went wrong.