docker配置minio、redis、nacos
redis
docker run -p 6379:6379 --name redis \
-v /home/pc01/dockerfile/config/redis/redis.conf:/etc/redis/redis.conf \
-v /home/pc01/dockerfile/config/redis/data:/data \
--restart=always -d redis:latest \
redis-server /etc/redis/redis.conf
nacos
docker run --name nacos-server \
-p 8848:8848 \
-p 9848:9848 \
-p 9849:9849 \
--privileged=true \
--restart=always \
-e JVM_XMS=256m \
-e JVM_XMX=256m \
-e MODE=standalone \
-e PREFER_HOST_MODE=hostname \
-v /home/pc01/dockerfile/config/logs:/home/nacos/logs \
-v /home/pc01/dockerfile/config/application.properties:/home/nacos/conf/application.properties \
-d \
nacos/nacos-server:v2.1.1
minio
docker run -p 9000:9000 --name minio \
-d --restart=always \
-e MINIO_ACCESS_KEY=minio \
-e MINIO_SECRET_KEY=minio@123 \
-v /usr/local/minio/data:/data \
-v /usr/local/minio/config:/root/.minio \
minio/minio server /data --console-address ":9000" --address ":9090"
原文地址:https://blog.csdn.net/weixin_45822938/article/details/137875823
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!