Coder Social home page Coder Social logo

dockerfile's Introduction

Dockerfile

Jumpserver all in one Dockerfile

This project is only for Docker image build, this docker image we do not suggest you build in a product environment.

该项目仅仅是Jumpserver项目的docker镜像生成代码,我们不建议在生产环境下使用该镜像。

The main reasons are:

  • the database is in the docker too, and we suggest you use your own database by docker env.
  • lack of scalability
  • NO HA plan
  • some unknown problems

主要原因是:

  • 数据库在docker内,建议通过docker的环境变量去使用外部数据库
  • 几乎丧失的横向扩展能力
  • 没有HA的解决方案
  • 未知的一些问题

How to start

We provide two docker images, same function different size.

该项目提供两种docker镜像,同样的功能,只是镜像大小的区别。

docker run --name jms_server -dp 80:80 -p 2222:2222 -e DB_ENGINE=mysql -e DB_HOST=127.0.0.1 -e DB_PORT=3306 -e DB_USER=jumpserver -e DB_PASSWORD=weakPassword -e DB_NAME=jumpserver -e REDIS_HOST=127.0.0.1 -e REDIS_PORT=6379  wojiushixiaobai/jumpserver:1.4.1

使用外置mysql数据库和redis:

设置环境变量:

  • DB_ENGINE = mysql

  • DB_HOST = mysql_host

  • DB_PORT = 3306

  • DB_USER = xxx

  • DB_PASSWORD = xxxx

  • DB_NAME = jumpserver

  • REDIS_HOST = ''

  • REDIS_PORT = ''

  • REDIS_PASSWORD = ''

docker run --name jms_server -dp 80:80 -p 2222:2222 -e DB_ENGINE=mysql -e DB_HOST=192.168.1.1 -e DB_PORT=3306 -e DB_USER=root -e DB_PASSWORD=xxx -e DB_NAME=jumpserver  wojiushixiaobai/jumpserver:1.4.1

dockerfile's People

Contributors

ibuler avatar liuzheng avatar wojiushixiaobai avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.