|
13 | 13 | <strong>English</strong> | <a href="README_ZH.md" target="_blank">简体中文</a>
|
14 | 14 | </p>
|
15 | 15 |
|
16 |
| -Rethink is my understanding of self-developing. |
| 16 | +Rethink is a new understanding of self-developing. |
17 | 17 |
|
18 | 18 | Every time a new thought is recorded,
|
19 | 19 | the relevant old thought will automatically emerge,
|
@@ -43,7 +43,45 @@ Making the new thought more connectable and memorable.
|
43 | 43 | which makes it easy to synchronize across multiple platforms.
|
44 | 44 | 5. **Multi-language**: Support multiple languages, including Chinese and English.
|
45 | 45 |
|
46 |
| -## Install |
| 46 | +## Deploy by Docker |
| 47 | + |
| 48 | +1. Pull the image: |
| 49 | + |
| 50 | +```shell |
| 51 | +docker pull morvanzhou/rethink |
| 52 | +``` |
| 53 | + |
| 54 | +2. Run the container: |
| 55 | + |
| 56 | +For keeping your data safe, you should mount a local path to the container. |
| 57 | + |
| 58 | +```shell |
| 59 | +docker run -p 8080:8080 -v /your/data/path:/app/.data morvanzhou/rethink |
| 60 | +``` |
| 61 | + |
| 62 | +Then you can visit `http://127.0.0.1:8080` in your browser. |
| 63 | + |
| 64 | +If you want to define another host's port, you have to also add an environment variable `API_URL`: |
| 65 | + |
| 66 | +```shell |
| 67 | +docker run -e API_URL=http://127.0.0.1:8001 -p 8001:8080 -v /your/data/path:/app/.data morvanzhou/rethink |
| 68 | +``` |
| 69 | + |
| 70 | +If you want to set a password for authorization, you have to also add a environment variable `APP_PASSWORD`: |
| 71 | + |
| 72 | +```shell |
| 73 | +docker run -e APP_PASSWORD=12345678 -p 8080:8080 -v /your/data/path:/app/.data morvanzhou/rethink |
| 74 | +``` |
| 75 | + |
| 76 | +All environment variables: |
| 77 | + |
| 78 | +- `API_URL`: the API url in app js code, default is `http://127.0.0.1:8080` |
| 79 | +- `APP_PASSWORD`: authorization password, default is None |
| 80 | +- `APP_LANGUAGE`: language, default is English, optional: zh, en |
| 81 | + |
| 82 | +## Use Python and pip to install |
| 83 | + |
| 84 | +The second way to use Rethink is to install it via pip. |
47 | 85 |
|
48 | 86 | First install:
|
49 | 87 |
|
|
0 commit comments