mysql
docker run --restart always -itd --name devops-mysql -p 3308:3306 -v E:/DevOps/data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:8.0.27 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
rabbitmq
docker run --restart always -itd --hostname devops-rabbit --name devops-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3.9.8-management
redis
docker run --restart always -itd --name devops-redis -p 6379:6379 -v E:/DevOps/data/redis/redis.conf:/etc/redis/redis.conf -v E:/DevOps/data/redis/data:/data redis --appendonly yes
docker run -d --privileged=true -p 6379:6379 --restart always -v /home/devops/data/redis/conf/redis.conf:/etc/redis/redis.conf -v /home/devops/data/redis/data:/data --name devops-redis redis redis-server /etc/redis/redis.conf --appendonly yes --requirepass "root"
consul
docker run --restart always -d -p 8500:8500 -p 8600:8600/udp --name devops-consul consul agent -server -ui -node server-1 -bootstrap-expect=1 -client 0.0.0.0
consul agent -data-dir=/home/consul/data -bind=127.0.0.1 -server -bootstrap-expect 1 -ui -client 0.0.0.0 &
consul agent -server -datacenter=dc1 -bootstrap -data-dir ./data -config-file ./conf -ui-dir ./dist -node=n1 -bind 127.0.0.1 -client=0.0.0.0
APISIX
docker run --name devops-apisix -d -p 9080:9080 -p 9091:9091 -p 2379:2379 -p 9000:9000 -v E:/DevOps/apisix/apisix/config.yaml:/usr/local/apisix/conf/config.yaml -v E:/DevOps/apisix/apisix-dashboard/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml apache/apisix-dashboard
showdoc
docker run -d --name showdoc --user=root --privileged=true -p 4999:80 -v /showdoc_data/html:/var/www/html/ star7th/showdoc
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)