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: docs/en/guide/oneclickvirt/oneclickvirt_install.md
+69-24Lines changed: 69 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,9 +36,22 @@ Since the database starts together when starting, do not operate immediately whe
36
36
37
37
#### Method 1: Using Pre-built Images
38
38
39
-
**Setup in Fresh Environment**
39
+
**Image Tag Description**
40
40
41
-
Use pre-built ```amd64``` or ```arm64``` images, which will automatically download the corresponding version based on the current system architecture:
41
+
| Image Tag | Description | Use Case |
42
+
|---------|------|---------|
43
+
|`spiritlhl/oneclickvirt:latest`| Integrated version (built-in database) latest | Quick deployment |
44
+
|`spiritlhl/oneclickvirt:20251015`| Integrated version specific date version | Need fixed version |
45
+
|`spiritlhl/oneclickvirt:no-db`| Independent database version latest | Without built-in database |
46
+
|`spiritlhl/oneclickvirt:no-db-20251015`| Independent database version specific date | Without built-in database |
47
+
48
+
All images support `linux/amd64` and `linux/arm64` architectures.
49
+
50
+
**Deployment in Fresh Environment**
51
+
52
+
Using pre-built `amd64` or `arm64` images, will automatically download the corresponding version based on current system architecture:
53
+
54
+
Without domain configuration:
42
55
43
56
```bash
44
57
docker run -d \
@@ -50,73 +63,105 @@ docker run -d \
50
63
spiritlhl/oneclickvirt:latest
51
64
```
52
65
53
-
Or use GitHub Container Registry:
66
+
With domain access configuration:
67
+
68
+
If you need to configure a domain, you need to set the `FRONTEND_URL` environment variable:
54
69
55
70
```bash
56
71
docker run -d \
57
72
--name oneclickvirt \
58
73
-p 80:80 \
74
+
-e FRONTEND_URL="https://your-domain.com" \
59
75
-v oneclickvirt-data:/var/lib/mysql \
60
76
-v oneclickvirt-storage:/app/storage \
61
77
--restart unless-stopped \
62
-
ghcr.io/oneclickvirt/oneclickvirt:latest
78
+
spiritlhl/oneclickvirt:latest
63
79
```
64
80
65
-
The above methods are only for new installations.
81
+
The above methods are only for fresh installation
66
82
67
-
**Setup in Existing Environment**
83
+
**Upgrade Frontend and Backend Only in Existing Environment**
68
84
69
-
If you are installing again after deleting the container, you need to ensure that the originally mounted data is also deleted, so that the database will be reinitialized when the container is rebuilt.
85
+
No need to delete mounted volumes, just delete the container itself
Only by deleting the container image and re-pulling the image can you ensure that the image used is the latest one; otherwise, the image will not be automatically updated.
86
-
87
-
**Re-pull Container Image**
97
+
Pull the container image again
88
98
89
99
```shell
90
100
docker pull spiritlhl/oneclickvirt:latest
91
101
```
92
102
93
-
or
103
+
Then follow the steps for deployment in fresh environment, note that after waiting 12 seconds to open the frontend, you will find it automatically skips the initialization interface because the data has been saved and is available
104
+
105
+
**Redeploy in Existing Environment**
106
+
107
+
Need to delete not only the container but also the corresponding mounts:
0 commit comments