Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
solo-1
Commits
e95daa94
Unverified
Commit
e95daa94
authored
Mar 20, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
#12718
parent
406fb340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
README.md
README.md
+20
-5
No files found.
README.md
View file @
e95daa94
...
...
@@ -95,11 +95,6 @@ docker pull b3log/solo
```
*
使用 MySQL
TBD
```
shell
docker run
--name
solo
-p
8080:8080
--net
=
host
-d
b3log/solo
```
*
使用 H2 Databse
```
shell
docker run
--detach
--name
solo
--network
=
host
\
...
...
@@ -110,7 +105,27 @@ docker pull b3log/solo
--env
JDBC_URL
=
"jdbc:mysql://localhost:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC"
\
b3log/solo
--listen_port
=
8080
--server_scheme
=
http
--server_host
=
localhost
```
为了简单,使用了主机网络模式来连接主机上的 MySQL。
*
使用 H2 Databse
```
shell
docker run
--detach
--name
solo
--volume
~/solo_h2/:/opt/solo/h2/
--publish
8080:8080
\
--env
RUNTIME_DB
=
"H2"
\
--env
JDBC_USERNAME
=
"root"
\
--env
JDBC_PASSWORD
=
"123456"
\
--env
JDBC_DRIVER
=
"org.h2.Driver"
\
--env
JDBC_URL
=
"jdbc:h2:/opt/solo/h2/db;MODE=MYSQL"
\
b3log/solo
--listen_port
=
8080
--server_scheme
=
http
--server_host
=
localhost
```
启动参数说明:
*
`--listen_port`
:进程监听端口
*
`--server_scheme`
:最终访问协议,如果反代服务启用了 HTTPS 这里也需要改为
`https`
*
`--server_host`
:最终访问域名或 IP,不要带端口号,如果是 IP 的话请用公网 IP
完整启动参数的说明可以使用
`-h`
来查看。
## 文档
...
...
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