This can be used for testing environments. For production environments, it is recommended to use the standard deployment.
docker volume create jsdata &> /dev/null
docker volume create pgdata &> /dev/null
docker run --name jms_all \
-e SECRET_KEY=PleaseChangeMe \
-e BOOTSTRAP_TOKEN=PleaseChangeMe \
-v jsdata:/opt/data \
-v pgdata:/var/lib/postgresql \
-p 2222:2222 \
-p 80:80 jumpserver/jms_all
For more details, see the all-in-one README.
Please use the JumpServer installer for deployment.
https://docs.jumpserver.org/zh/v3/quick_start/
JumpServer supports deployment using Swarm, but it is not highly recommended for production environments unless you are familiar with it.
For more details, see the Swarm README.