|
|
|
|
+ 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
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```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
|
|
|
|
|
//创建存储
|
|
|
|
|
D:\mysql\data D:\mysql\conf
|
|
|
|
|
//在conf下创建my.cnf文件
|
|
|
|
|
[client]
|
|
|
|
|
#socket = /d/mysql/mysqld.sock
|
|
|
|
|
default-character-set = utf8mb4
|
|
|
|
|
[mysqld]
|
|
|
|
|
#pid-file = /var/run/mysqld/mysqld.pid
|
|
|
|
|
#socket = /var/run/mysqld/mysqld.sock
|
|
|
|
|
#datadir = /var/lib/mysql
|
|
|
|
|
#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
|
|
|
|
|
!includedir /etc/mysql/conf.d/
|
|
|
|
|
|
|
|
|
|
//创建容器 指定密码为root@123
|
|
|
|
|
docker run --restart=unless-stopped -d --name mysql8 -v /d/mysql/conf/my.cnf:/etc/mysql/my.cnf -v /d/mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@123 mysql:latest
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
+ 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
|
|
|
|
|
```
|