Commit 7939d17c authored by Liang Ding's avatar Liang Ding

🐳 #12718

parent c8a353ee
......@@ -102,7 +102,13 @@ docker pull b3log/solo
* 使用 H2 Databse
```shell
docker run --name solo -p 8080:8080 -v ~/solo_h2:/opt/b3log/backup/ -d b3log/solo
docker run --detach --name solo --network=host \
--env RUNTIME_DB="MYSQL" \
--env JDBC_USERNAME="root" \
--env JDBC_PASSWORD="123456" \
--env JDBC_DRIVER="com.mysql.cj.jdbc.Driver" \
--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
```
......
......@@ -24,11 +24,9 @@
#### Server ####
# Browser visit protocol
serverScheme=${SERVER_SCHEME}
serverScheme=http
# Browser visit domain name
serverHost=${SERVER_HOST}
# Browser visit port, 80 as usual, THIS IS NOT SERVER LISTEN PORT!
serverPort=${SERVER_PORT}
serverHost=localhost
#### Runtime Mode ####
### runtimeMode=DEVELOPMENT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment