You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+77
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,85 @@ It's completely free, if this project is helpful to you, please click on Star. T
41
41
- test password: 123456
42
42
43
43
## Quick Start
44
+
44
45
We provide a more comprehensive Docker deployment method, which can be found in [docker folder](https://github.com/eairps/eairp/blob/master/docker/README.md)
45
46
47
+
### Prerequisites
48
+
- Docker Engine 20.10+
49
+
- Docker Compose v2.17+
50
+
51
+
### 1. Docker Compose (Recommended)
52
+
53
+
**Applicable scenarios**: There is no MySQL/Redis environment locally, and a complete service stack needs to be started quickly.
54
+
55
+
```bash
56
+
# Clone deployment repository
57
+
git clone https://github.com/eairps/eairp.git
58
+
59
+
cd eairp
60
+
61
+
# Start services
62
+
docker compose up -d
63
+
```
64
+
65
+
### 2. Docker standalone container
66
+
67
+
**Applicable scenarios**: MySQL/Redis service already exists, and custom database configuration is required.
68
+
69
+
**Step 1**: Create a Private Network
70
+
71
+
```console
72
+
docker network create eairp-net
73
+
```
74
+
75
+
**Step 2**: Start the MySQL container
76
+
77
+
```console
78
+
docker run -d --name mysql-eairp \
79
+
--network eairp-net \
80
+
-p 3306:3306 \
81
+
-v /path/to/mysql:/var/lib/mysql \
82
+
-e MYSQL_ROOT_PASSWORD=123456 \
83
+
-e MYSQL_USER=eairp \
84
+
-e MYSQL_PASSWORD=123456 \
85
+
mysql:8.3 \
86
+
--character-set-server=utf8mb4 \
87
+
--collation-server=utf8mb4_bin
88
+
```
89
+
90
+
**Step 3**: Start the Redis container
91
+
92
+
```console
93
+
docker run -d --name redis-eairp \
94
+
--network eairp-net \
95
+
-p 6379:6379 \
96
+
-v /path/to/redis/data:/data \
97
+
redis:7.0 \
98
+
redis-server --requirepass 123456
99
+
```
100
+
101
+
**Step 4**: Start the Eairp container
102
+
103
+
Configuration parameters:
104
+
| Environment variables | Explanation | Example Value |
105
+
| ---- | ---- | ---- |
106
+
| SPRING_DATASOURCE_URL | MySQL connection address | jdbc:mysql://mysql-eairp:3306/eairp |
Copy file name to clipboardexpand all lines: docker/README.md
+1-3
Original file line number
Diff line number
Diff line change
@@ -164,16 +164,14 @@ If you want to deploy on your server, please modify the value of the `API_BASE_U
164
164
165
165
Another solution is to use the Docker Compose files we provide.
166
166
167
-
First you need to download the [eairp source code](https://github.com/wansenai/eairp/releases) to your local machine, then you must download 5 files from [eairp-docker](https://github.com/wansenai/eairp-docker) repository, they are:
167
+
First you need to download the [eairp source code](https://github.com/wansenai/eairp/releases) to your local machine.
168
168
169
169
-`.env`
170
170
-`Dockerfile`
171
171
-`docker-compose.yaml`
172
172
-`start.sh`
173
173
-`mysql-scripts/eairp.sql`
174
174
175
-
Then copy these four files and the `mysql-scripts` folder to the Eairp source code directory structure, Note that `mysql-scripts` is a folder. You need to copy the folder in its entirety instead of the sql file inside.
0 commit comments