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
| Dockerfile Self-compilation | Suitable for secondary development and source code release | Highly customizable | Requires Docker environment, long compilation time |
33
33
34
-
### Installation via Docker
35
-
36
-
:::tip
37
-
Since the database starts together with the container, do not operate immediately after the container starts. Wait at least 12 seconds.
| Image Tag | Description | Application Scenario |
51
-
|---------|------|---------|
52
-
|`spiritlhl/oneclickvirt:latest`| Integrated version (built-in database) latest | Quick deployment |
53
-
|`spiritlhl/oneclickvirt:20251023`| Integrated version specific date | Requires fixed version |
54
-
|`spiritlhl/oneclickvirt:no-db`| Separate database version latest | Without built-in database |
55
-
|`spiritlhl/oneclickvirt:no-db-20251023`| Separate database version specific date | Without built-in database |
56
-
57
-
All images support both `linux/amd64` and `linux/arm64` architectures.
58
-
59
-
##### Deploy in Fresh Environment
60
-
61
-
Use pre-built ```amd64``` or ```arm64``` images, which will automatically download the corresponding version based on the current system architecture:
62
-
63
-
Without domain configuration:
64
-
65
-
```bash
66
-
docker run -d \
67
-
--name oneclickvirt \
68
-
-p 80:80 \
69
-
-v oneclickvirt-data:/var/lib/mysql \
70
-
-v oneclickvirt-storage:/app/storage \
71
-
--restart unless-stopped \
72
-
spiritlhl/oneclickvirt:latest
73
-
```
74
-
75
-
Configure domain access:
76
-
77
-
If you need to configure a domain, set the `FRONTEND_URL` environment variable:
78
-
79
-
```bash
80
-
docker run -d \
81
-
--name oneclickvirt \
82
-
-p 80:80 \
83
-
-e FRONTEND_URL="https://your-domain.com" \
84
-
-v oneclickvirt-data:/var/lib/mysql \
85
-
-v oneclickvirt-storage:/app/storage \
86
-
--restart unless-stopped \
87
-
spiritlhl/oneclickvirt:latest
88
-
```
89
-
90
-
The above methods are only for new installations.
91
-
92
-
##### Upgrade Only Front-end and Back-end in Existing Environment
93
-
94
-
First backup the configuration file to the current path:
95
-
96
-
```shell
97
-
docker cp oneclickvirt:/app/config.yaml .
98
-
```
99
-
100
-
Delete only the container without removing the mounted volumes:
101
-
102
-
```shell
103
-
docker rm -f oneclickvirt
104
-
```
105
-
106
-
Then delete the original image:
107
-
108
-
```shell
109
-
docker image rm -f spiritlhl/oneclickvirt:latest
110
-
```
111
-
112
-
Pull the container image again:
113
-
114
-
```shell
115
-
docker pull spiritlhl/oneclickvirt:latest
116
-
```
117
-
118
-
Then follow the steps for deployment in a fresh environment. Note that after waiting 12 seconds and opening the front-end, you will find it automatically skips the initialization interface because the data has been persisted and imported.
In addition to configuration files, both backend and frontend files will be upgraded.
117
+
118
+
###### Deploy the frontend
119
+
264
120
The installation script will extract static files to:
265
121
266
122
```shell
@@ -356,6 +212,160 @@ If you're on a Windows system, you need to start the exe file with administrator
356
212
357
213
The all-in-one deployment mode is suitable for situations where the local machine doesn't have a public IP. Your IP address can be ```localhost``` or ```127.0.0.1```, or it can be the corresponding public IPv4 address. Test in your specific deployment environment.
358
214
215
+
### Installation via Docker
216
+
217
+
:::tip
218
+
Since the database starts together with the container, do not operate immediately after the container starts. Wait at least 12 seconds.
| Image Tag | Description | Application Scenario |
232
+
|---------|------|---------|
233
+
|`spiritlhl/oneclickvirt:latest`| Integrated version (built-in database) latest | Quick deployment |
234
+
|`spiritlhl/oneclickvirt:20251023`| Integrated version specific date | Requires fixed version |
235
+
|`spiritlhl/oneclickvirt:no-db`| Separate database version latest | Without built-in database |
236
+
|`spiritlhl/oneclickvirt:no-db-20251023`| Separate database version specific date | Without built-in database |
237
+
238
+
All images support both `linux/amd64` and `linux/arm64` architectures.
239
+
240
+
##### Deploy in Fresh Environment
241
+
242
+
Use pre-built ```amd64``` or ```arm64``` images, which will automatically download the corresponding version based on the current system architecture:
243
+
244
+
Without domain configuration:
245
+
246
+
```bash
247
+
docker run -d \
248
+
--name oneclickvirt \
249
+
-p 80:80 \
250
+
-v oneclickvirt-data:/var/lib/mysql \
251
+
-v oneclickvirt-storage:/app/storage \
252
+
--restart unless-stopped \
253
+
spiritlhl/oneclickvirt:latest
254
+
```
255
+
256
+
Configure domain access:
257
+
258
+
If you need to configure a domain, set the `FRONTEND_URL` environment variable:
259
+
260
+
```bash
261
+
docker run -d \
262
+
--name oneclickvirt \
263
+
-p 80:80 \
264
+
-e FRONTEND_URL="https://your-domain.com" \
265
+
-v oneclickvirt-data:/var/lib/mysql \
266
+
-v oneclickvirt-storage:/app/storage \
267
+
--restart unless-stopped \
268
+
spiritlhl/oneclickvirt:latest
269
+
```
270
+
271
+
The above methods are only for new installations.
272
+
273
+
##### Upgrade Only Front-end and Back-end in Existing Environment
274
+
275
+
First backup the configuration file to the current path:
276
+
277
+
```shell
278
+
docker cp oneclickvirt:/app/config.yaml .
279
+
```
280
+
281
+
Delete only the container without removing the mounted volumes:
282
+
283
+
```shell
284
+
docker rm -f oneclickvirt
285
+
```
286
+
287
+
Then delete the original image:
288
+
289
+
```shell
290
+
docker image rm -f spiritlhl/oneclickvirt:latest
291
+
```
292
+
293
+
Pull the container image again:
294
+
295
+
```shell
296
+
docker pull spiritlhl/oneclickvirt:latest
297
+
```
298
+
299
+
Then follow the steps for deployment in a fresh environment. Note that after waiting 12 seconds and opening the front-end, you will find it automatically skips the initialization interface because the data has been persisted and imported.
After installing and starting ```mysql```, create an empty database ```oneclickvirt```, using type ```utf8mb4```, preferably accessible only locally via ```127.0.0.1```. Save the corresponding username and password. (If you're using the all-in-one Docker deployment container, the database is included and you don't need to create an empty database yourself. By default, the corresponding database has already been started in the container and is available.)
0 commit comments