docker-compose编排部署程序(3)& jumpserver(1)Docker-compose部署jumpserver堡垒机
2022/8/12 1:26:01
本文主要是介绍docker-compose编排部署程序(3)& jumpserver(1)Docker-compose部署jumpserver堡垒机,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
参考文档:
Docker-compose部署jumpserver堡垒机
环境部署
本篇文档涉及docker-compose文档和docker镜像的原作者信息,本文档仅作为整理使用
本文使用的docker-compse.yml为吴小白编写,镜像也是吴小白提供的
作者吴小白的github地址:https://github.com/wojiushixiaobai
作者吴小白的dockerhub地址:https://hub.docker.com/u/wojiushixiaobai
1.搭建docker环境
yum -y install docker
2.安装docker-compose
curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/bin/docker-compose chmod +x /usr/bin/docker-compose
3.创建项目目录
mkdir -p /data/jms cd /data/jms
4.下载jms的docker项目
git clone https://github.com/wojiushixiaobai/docker-compose.git
[[email protected] docker-compose]# cat docker-compose.yml version: '3' services: mysql: image: wojiushixiaobai/jms_mysql:${Version} container_name: jms_mysql restart: always tty: true environment: DB_PORT: $DB_PORT DB_USER: $DB_USER DB_PASSWORD: $DB_PASSWORD DB_NAME: $DB_NAME volumes: - mysql-data:/var/lib/mysql networks: - jumpserver redis: image: wojiushixiaobai/jms_redis:${Version} container_name: jms_redis restart: always tty: true environment: REDIS_PORT: $REDIS_PORT REDIS_PASSWORD: $REDIS_PASSWORD volumes: - redis-data:/var/lib/redis/ networks: - jumpserver core: image: wojiushixiaobai/jms_core:${Version} container_name: jms_core restart: always tty: true environment: SECRET_KEY: $SECRET_KEY BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN DB_HOST: $DB_HOST DB_PORT: $DB_PORT DB_USER: $DB_USER DB_PASSWORD: $DB_PASSWORD DB_NAME: $DB_NAME REDIS_HOST: $REDIS_HOST REDIS_PORT: $REDIS_PORT REDIS_PASSWORD: $REDIS_PASSWORD depends_on: - mysql - redis volumes: - static:/opt/jumpserver/data/static - media:/opt/jumpserver/data/media networks: - jumpserver koko: image: wojiushixiaobai/jms_koko:${Version} container_name: jms_koko restart: always tty: true environment: CORE_HOST: http://core:8080 BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN depends_on: - core - mysql - redis volumes: - koko-keys:/opt/koko/data/keys ports: - 2222:2222 networks: - jumpserver guacamole: image: wojiushixiaobai/jms_guacamole:${Version} container_name: jms_guacamole restart: always tty: true environment: JUMPSERVER_SERVER: http://core:8080 BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN JUMPSERVER_KEY_DIR: /config/guacamole/keys GUACAMOLE_HOME: /config/guacamole GUACAMOLE_LOG_LEVEL: ERROR JUMPSERVER_ENABLE_DRIVE: 'true' depends_on: - core - mysql - redis volumes: - guacamole-keys:/config/guacamole/keys networks: - jumpserver nginx: image: wojiushixiaobai/jms_nginx:${Version} container_name: jms_nginx restart: always tty: true depends_on: - core - koko - mysql - redis volumes: - static:/opt/jumpserver/data/static - media:/opt/jumpserver/data/media ports: - 80:80 networks: - jumpserver volumes: static: media: mysql-data: redis-data: koko-keys: guacamole-keys: networks: jumpserver:
5.用docker-compose启动项目
docker-compose up -d
6、登录jump server后台,默认的登录用户名和密码均为:admin
这篇关于docker-compose编排部署程序(3)& jumpserver(1)Docker-compose部署jumpserver堡垒机的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-10-31Docker部署资料:新手入门指南
- 2024-10-31Dockerfile 增强新语法
- 2024-10-31Docker部署资料:新手入门教程
- 2024-10-31docker镜像下搭建的L2tp 只能连接一个小时是什么原因-icode9专业技术文章分享
- 2024-10-30Docker部署教程:新手必备的详细指南
- 2024-10-30五个常见的Docker部署坑(以及如何像高手一样轻松避开它们 ??)
- 2024-10-30Docker部署入门教程:轻松上手Docker部署
- 2024-10-30Docker部署入门教程:轻松搭建你的第一个Docker应用
- 2024-10-30Docker部署学习:新手入门教程
- 2024-10-30Docker部署入门教程:轻松掌握Docker部署技巧