docker-compose安装jumpserver

发布时间:2020-06-04 12:55:05 作者:doubf
来源:网络 阅读:331
默认用户名密码  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

推荐阅读:
  1. jumpserver的安装
  2. jumpserver的安装和使用教程

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

docker-compose dock docker-

上一篇:Jquery简单的右侧浮动菜单

下一篇: 三台主机部署lamp(fast-cgi)

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》