MySQL
docker volume create benxiao-mysql
docker run -d \
--name benxiao-mysql \
-e MYSQL_ROOT_PASSWORD=kinson \
-e MYSQL_USER=kinson \
-e MYSQL_PASSWORD=kinson \
-e MYSQL_DATABASE=benxiao \
-e TZ=Asia/Shanghai \
-v benxiao-mysql:/var/lib/mysql \
-p 3306:3306 \
mysql:9.0
Mongo
docker volume create benxiao-mongo
docker run -d \
--name benxiao-mongo \
-e MONGO_INITDB_ROOT_USERNAME=kinson \
-e MONGO_INITDB_ROOT_PASSWORD=kinson \
-e TZ=Asia/Shanghai \
-v benxiao-mongo:/data/db \
-p 27017:27017 \
mongo:7.0
db.createUser({
user: 'kinson',
pwd: 'kinson',
roles: [{ role: 'readWrite', db: 'benxiao' }]
});```
## Redis
```shell
docker run -d --name redis \
-p 6379:6379 \
redis:latest
MinIO
docker volume create benxiao-minio
docker run -d --name minio \
-p 9000:9000 -p 9001:9001 \
-v benxiao-minio:/data \
quay.io/minio/minio \
server /data --console-address ":9001"
Nextcoud
docker run -d \
-e NEXTCLOUD_ADMIN_USER=kinson \
-e NEXTCLOUD_ADMIN_PASSWORD=kinson \
-p 8080:80 nextcloud