安裝 堡壘機 docker

一文搞懂發表於2024-10-23

參考 Docker部署常見應用之企業級堡壘機JumpServer_jumpserver docker-CSDN部落格

建立資料夾

mkdir -p /opt/jumpserver/core/data
mkdir -p /opt/jumpserver/koko/data
mkdir -p /opt/jumpserver/lion/data
mkdir -p /opt/jumpserver/kael/data
mkdir -p /opt/jumpserver/chen/data
mkdir -p /opt/jumpserver/web/log

執行docker 命令

sudo docker run --name jms_all -d \
  -p 80:80 \
  -p 2222:2222 \
  -p 30000-30100:30000-30100 \
  -e SECRET_KEY=$SECRET_KEY \
  -e BOOTSTRAP_TOKEN=$BOOTSTRAP_TOKEN \
  -e LOG_LEVEL=ERROR \
  -e DB_HOST=192.168.10.111 \
  -e DB_PORT=3306 \
  -e DB_USER=root \
  -e DB_PASSWORD=root\
  -e DB_NAME=jumpserver \
  -e REDIS_HOST=192.168.10.11 \
  -e REDIS_PORT=6379 \
  -e REDIS_PASSWORD= \
  --privileged=true \
  -v /data/docker/jumpserver/core/data:/opt/jumpserver/data \
  -v /data/docker/jumpserver/koko/data:/opt/jumpserver/koko/data \
  -v /data/docker/jumpserver/lion/data:/opt/jumpserver/lion/data \
  -v /data/docker/jumpserver/kael/data:/opt/jumpserver/kael/data \
  -v /data/docker/jumpserver/chen/data:/opt/jumpserver/chen/data \
  -v /data/docker/jumpserver/web/log:/opt/jumpserver/web/log \
  --network jumpserver \
  jumpserver/jms_all:v3.10.10

相關文章