docker-compose安装jumpserver
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker-compose安装jumpserver相关的知识,希望对你有一定的参考价值。
默认用户名密码 admin/admin
version: ‘3‘
services:
db:
image: "mysql:5.7"
restart: ‘always‘
container_name: mysql
ports:
- "3309:3306"
environment:
- MYSQL_ROOT_PASSWORD=dbf@123qwe
- MYSQL_DATABASE=jumpserver
- MYSQL_USER=jumpserver
- MYSQL_PASSWORD=jumpserver12345
- character-set-server=utf8mb4
- collation-server=utf8mb4_bin
volumes:
- /data/mysql_jms/data:/var/lib/mysql
deploy:
replicas: 1
update_config:
delay: 1s
restart_policy:
condition: on-failure
jump:
image: "jumpserver/jms_all:latest"
ports:
- "8088:80"
depends_on:
- db
environment:
- DB_HOST=db
- DB_USER=jumpserver
- DB_PASSWORD=jumpserver12345
- DB_NAME=jumpserver
restart: ‘always‘
container_name: ‘jumpserver‘
volumes:
- ./data-jumpserver:/opt/jumpserver/data/
- ./logs:/opt/jumpserver/logs/
deploy:
replicas: 1
update_config:
delay: 1s
restart_policy:
condition: on-failure
参考jumpserver官网:https://jumpserver.readthedocs.io/zh/master/dockerinstall.html
以上是关于docker-compose安装jumpserver的主要内容,如果未能解决你的问题,请参考以下文章
docker-compose JumpServer 2.11.1