fix(docs): rearrange installation steps (#9)

This commit is contained in:
Shahrad Elahi 2024-04-27 01:17:14 +03:30 committed by GitHub
parent eb45ccc91e
commit 0fabc4a2de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,22 @@
- [Docker Engine](https://docs.docker.com/engine/install/) - [Docker Engine](https://docs.docker.com/engine/install/)
### 2. Persistent Data ### 2. Docker Image
#### Build from source
```bash
git clone https://github.com/shahradelahi/wireadmin
docker buildx build --tag litehex/wireadmin ./wireadmin
```
#### Pull from Docker Hub (recommended)
```bash
docker pull litehex/wireadmin
```
### 4. Persistent Data
WireAdmin store configurations at `/data`. It's important to mount a volume at this location to ensure that WireAdmin store configurations at `/data`. It's important to mount a volume at this location to ensure that
your data is not lost during container restarts or updates. your data is not lost during container restarts or updates.
@ -31,21 +46,6 @@ your data is not lost during container restarts or updates.
docker volume create wireadmin-data --driver local docker volume create wireadmin-data --driver local
``` ```
### 3. Download Image
#### Build from source
```bash
git clone https://github.com/shahradelahi/wireadmin
docker buildx build --tag litehex/wireadmin .
```
#### Pull from Docker Hub (recommended)
```bash
docker pull litehex/wireadmin
```
### 4. Run ### 4. Run
When creating each server, ensure that you add the port exposure through Docker. In the below command, the port `51820` When creating each server, ensure that you add the port exposure through Docker. In the below command, the port `51820`