Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
544340e6
Unverified
Commit
544340e6
authored
Oct 28, 2018
by
wojiushixiaobai
Committed by
GitHub
Oct 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1959 from wojiushixiaobai/docs
[Update]修改docker文档
parents
572625d6
3e6e7b1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
dockerinstall.rst
docs/dockerinstall.rst
+14
-6
No files found.
docs/dockerinstall.rst
View file @
544340e6
...
...
@@ -14,12 +14,20 @@ Tips: 不建议在生产中使用, 因为所有软件都打包到一个Docker中
生产中请使用 详细安装 `CentOS <step_by_step.rst>`_ `Ubuntu <setup_by_ubuntu.rst>`_
Docker 安装见: `Docker官方安装文档 <https://docs.docker.com/install/>`_
创建数据库
``````````````````
创建数据库命令行::
# mysql
$ create database jumpserver default charset 'utf8';
$ grant all on jumpserver.* to 'jumpserver'@'%' identified by 'weakPassword';
快速启动
```````````````
使用 root 命令行输入::
# 1.4.3 版本(最新)
$ docker run --name jms_server -d -p 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:latest
$ docker run --name jms_server -d -p 80:80 -p 2222:2222 -e DB_ENGINE=mysql -e DB_HOST=192.168.
x.x -e DB_PORT=3306 -e DB_USER=jumpserver -e DB_PASSWORD=weakPassword
-e DB_NAME=jumpserver wojiushixiaobai/jumpserver:latest
访问
```````````````
...
...
@@ -31,23 +39,23 @@ SSH访问: ssh -p 2222 <容器所在服务器IP>
XShell等工具请添加connection连接,ssh 端口 2222
额外环境变量
```````````````
- DB_ENGINE = mysql
- DB_HOST = mysql_host
- DB_PORT = 3306
- DB_USER =
xxx
- DB_PASSWORD =
xxxx
- DB_USER =
jumpserver
- DB_PASSWORD =
weakPassword
- DB_NAME = jumpserver
- REDIS_HOST =
<redis-host>
- REDIS_PORT =
<redis-port>
- REDIS_HOST =
127.0.0.1
- REDIS_PORT =
6379
- REDIS_PASSWORD =
- VOLUME /opt/jumpserver/data
- VOLUME /opt/coco/keys
- VOLUME /config/guacamole/keys
::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment