You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
6.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

+ PG12
docker pull postgres:12.14
docker run --name pg12 -e POSTGRES_PASSWORD=root@123 -e ALLOW_IP_RANGE=0.0.0.0/0 -p 5432:5432 -d postgres:12.14
localhost:5432 postgres:root@123
+ redis 免密
```shell
docker pull redis:latest
docker run --restart=always -p 6379:6379 --name redis7 -d redis:latest
```
localhost:6379
+ oracle
localhost:1521 zr:root@123
+ neo4j
docker 安装:
1.docker pull neo4j
2. docker run -d --name container_name -p 7474:7474 -p 7687:7687 --env NEO4J_AUTH=neo4j/root@12345 neo4j
http://localhost:7474/ neo4j/clone-formula-shelf-hair-neptune-3446
修改密码::server change-password
+ sqlserver 2008
sa/root@123
+ kafka
```shell
docker pull zookeeper
docker pull wurstmeister/kafka
docker volume create zookeeper_vol
docker volume create kafka_vol
```
```shell
docker run -d --name kafka-test -p 9092:9092 \ --link zookeeper-test \ --env KAFKA_ZOOKEEPER_CONNECT=zookeeper-test:2181 \ --env KAFKA_ADVERTISED_HOST_NAME=localhost \ --env KAFKA_ADVERTISED_PORT=9092 \ --env KAFKA_LOG_DIRS=/kafka/logs \ -v kafka_vol:/kafka \ wurstmeister/kafka
```
+ minio http://localhost:9000 admin/admin123
```shell
docker pull minio/minio
//在D盘创建minio文件夹并在里面再创建config文件夹 D:\minio\config
//创建容器 指定用户名密码为admin/admin123
docker run --name minio -p 9000:9000 -p 9999:9999 -d --restart=always -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=admin123" -v D:\minio\data:/data -v D:\minio\config:/root/.minio minio/minio server /data --console-address '0.0.0.0:9999'
```
+ mysql8 root/root@123
```shell
docker pull mysql:8.0.41
//创建存储
D:\mysql\data D:\mysql\conf
//在conf下创建my.cnf文件
[client]
#socket = /d/mysql/mysqld.sock
default-character-set = utf8mb4
[mysqld]
#socket = /d/mysql/mysqld.sock
#pid-file = /d/mysql/mysqld.pid
datadir = /d/mysql/data
character_set_server = utf8mb4
collation_server = utf8mb4_bin
secure-file-priv= NULL
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Custom config should go here
# 开启binlog
server-id = 223344
log_bin = mysql-bin
expire_logs_days = 10
binlog_format = row
binlog_row_image = FULL
gtid_mode = on
enforce_gtid_consistency = on
!includedir /etc/mysql/conf.d/
//创建容器 指定密码为root@123
docker run --restart=unless-stopped -d --name mysql8 -v /g/data/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /g/data/mysql/data:/var/lib/mysql -v /g/data/mysql/log:/var/log/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@123 mysql:8.0.41
```
+ rabbitmq http://localhost:15672 admin/admin123
```shell
//带管理界面的MQ
docker pull rabbitmq:management
//指定用户名密码为admin admin123 15672是管理界面端口5672是服务端口
docker run --name=rabbitmq-server -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=admin123 -d rabbitmq:management
//查看日志
docker logs rabbitmq-server
```
+ opengauss gaussdb/openGauss@123 默认postgres 数据库
```shell
docker run --name opengauss --privileged=true -d -e GS_PASSWORD=openGauss@123 -p5432:5432 -v /data/opengauss/data:/var/lib/opengauss/data opengauss/opengauss:5.0.0
```
+ redis 无密码,支持持久化
```shell
docker run --privileged=true -p 6379:6379 --name redis -v /Users/old-tom/data/redis/conf/redis.conf:/etc/redis/redis.conf -v /Users/old-tom/data/redis/data:/data -d redis redis-server /etc/redis/redis.conf --appendonly yes
```
+ mongoBD root/root@123
```shell
docker run -d --name mongodb4.0.1 -p 27017:27017 -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=root@123 -v mongodb_data:/data/db mongo:4.0.1
```
+ node16
```shell
brew install node@16
%% 添加环境变量 %%
export PATH="/opt/homebrew/opt/node@16/bin:$PATH"
```
+ node14
```shell
%% node14 不支持arm 对于m1 mac 需要使用转译模式%%
arch -x86_64 zsh
source ~/.nvm/nvm.sh
nvm install 14.21.3
```
+ doris 部署
1. 构建be和fe镜像参考官方文档[Docker 部署 - Apache Doris](https://doris.apache.org/zh-CN/docs/2.1/install/cluster-deployment/run-docker-cluster)
![[Pasted image 20240818193959.png]]
```shell
cd ./docker-build/fe
docker build . -t apache-doris:2.0.14-fe
```
2. docker部署
```shell
# windwos docker 需要先设置max_map_count并且关闭swap分区
# 在powershell中执行wsl -d docker-desktop (每次docker启动前先执行此命令不然BE无法启动)
sysctl -w vm.max_map_count=2000000
swapoff -a
```
```shell
# 创建网络
docker network create --subnet=172.10.70.0/24 doris-network
# FE (注意-v 路径替换)
docker run -itd --name=fe --env FE_SERVERS="fe1:172.10.70.2:9010" --env FE_ID=1 -p 8030:8030 -p 9030:9030 -v G:\data\doris\fe\doris-meta:/opt/apache-doris/fe/doris-meta -v G:\data\doris\fe\log:/opt/apache-doris/fe/log -v G:\data\doris\fe\conf\fe.conf:/opt/apache-doris/fe/conf/fe.conf --network=doris-network --ip=172.10.70.2 apache-doris:2.0.14-fe
# BE
docker run -itd --name=be --env MASTER_FE_IP="fe1:172.10.70.2:9010" --env CURRENT_BE_IP="172.10.70.3" --env CURRENT_BE_PORT="9050" -p 8040:8040 -v G:\data\doris\be\storage:/opt/apache-doris/be/storage -v G:\data\doris\be\log:/opt/apache-doris/be/log -v G:\data\doris\be\conf\be.conf:/opt/apache-doris/be/conf/be.conf --network=doris-network --ip=172.10.70.3 apache-doris:2.0.14-be
```
fe界面http://localhost:8030 账号root 无密码
在playground中添加BE地址
```sql
ALTER SYSTEM ADD BACKEND "172.10.70.3:9050";
```
![[Pasted image 20240818194732.png]]
be界面http://localhost:8040
+ 海豚调度
下载源码包使用docker-compose部署
```shell
$ DOLPHINSCHEDULER_VERSION=3.2.2
$ tar -zxf apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src.tar.gz
# Mac Linux 用户
$ cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src/deploy/docker
# Windows 用户, `cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src\deploy\docker`
# 如果需要初始化或者升级数据库结构需要指定profile为schema
$ docker-compose --profile schema up -d
# 启动dolphinscheduler所有服务指定profile为all
$ docker-compose --profile all up -d
```
[http://localhost:12345/dolphinscheduler/ui](http://localhost:12345/dolphinscheduler/ui) admin/dolphinscheduler123
+ dify (windwos)
参考文档 [Deploy with Docker Compose | Dify](https://docs.dify.ai/getting-started/install-self-hosted/docker-compose) 访问地址:http://localhost 892955278@msn.cn / ruirui920917@
```text
cd E:\code\opensource\dify\docker
docker compose up -d
```