Redis

docker run -d \
	--name some-redis \
	--restart always \
	--privileged=true \
	-p 6379:6379 \
	-v /custom/mount/some-redis:/data \
	redis \
	--requirepass 'password' \
	--appendonly yes

PostgreSql

docker run -d \
	--name some-postgres \
	--restart=always \
	--privileged=true \
	-e ALLOW_IP_RANGE=0.0.0.0/0 \
	-e POSTGRES_PASSWORD='password' \
	-e PGDATA=/var/lib/postgresql/data/pgdata \
	-p 5432:5432 \
	-v /custom/mount/some-postgres:/var/lib/postgresql/data/pgdata \
	postgres

QuartzUI

mkdir -p /docker-volume/quartz-ui
docker run -itd --name quartz-ui --restart=always -v /docker-volume/quartz-ui:/app/File --privileged=true -p 10000:80 bennyzhao/quartzui

第一次进入不用输密码

MySql

docker run -d --name mysql --restart=always --privileged=true -p 3306:3306 -e MYSQL_ROOT_PASSWORD='password' mysql:latest

RabbitMQ

docker run -d --name rabbitmq \
--restart=always \
--log-opt max-size=100m --log-opt max-file=1 \
-e RABBITMQ_DEFAULT_USER=admin \
-e RABBITMQ_DEFAULT_PASS=password \
--publish 5671:5671 \
--publish 5672:5672 \
--publish 4369:4369 \
--publish 25672:25672 \
--publish 15671:15671 \
--publish 15672:15672 \
rabbitmq:3.11-management

Shadowsocks

docker run -d --name shadowsocks --restart=always -p 8388:8388 -p 8388:8388/udp shadowsocks/shadowsocks-libev ss-server -p 8388 -k password -m aes-256-gcm


Adminer

docker run --log-opt max-size=100m --log-opt max-file=3 --name adminer -d -p 8080:8080 adminer
# Nginx 代理
location /adminer/ {
    proxy_pass http://172.17.0.1:8080/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

Dbeaver

docker run --log-opt max-size=100m --log-opt max-file=1 --name dbeaver -d -p 8978:8978 -e CLOUDBEAVER_ROOT_URI=/dbeaver dbeaver/cloudbeaver
# Nginx 代理
location /dbeaver/ {
    proxy_ssl_server_name on;
    proxy_set_header X-Forwarded-Host $host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    expires off;
    sendfile off;
    proxy_pass http://172.17.0.1:8978/dbeaver/;
}

文章作者: Captain
版权声明: 本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 One piece
教程
喜欢就支持一下吧