[docs] fixed docker description
This commit is contained in:
parent
dfa4b156e9
commit
dc82c29556
18
README.md
18
README.md
@ -29,7 +29,7 @@ meson test -C build -v
|
||||
|
||||
## Docker
|
||||
|
||||
You can build and run the server using Docker.
|
||||
You can build and run the cli using Docker.
|
||||
|
||||
### 1. Build Image
|
||||
```bash
|
||||
@ -37,20 +37,12 @@ docker build -t cloud-point-rpc .
|
||||
```
|
||||
|
||||
### 2. Run Container
|
||||
The server runs on port **8080** by default (defined in `config.yaml` inside the image).
|
||||
The cli will listen to port defined in config.yml file. (defined in `config.yaml` inside the image).
|
||||
For simplicity, it's better to use a host network, so you will not have any headache with accessability.
|
||||
|
||||
**Option A: Port Mapping**
|
||||
```bash
|
||||
docker run -p 8080:8080 cloud-point-rpc
|
||||
```
|
||||
> *Server is not configured to run through container, if you need, contact me*
|
||||
|
||||
**Option B: Host Network (For Simplicity/Performance)**
|
||||
```bash
|
||||
docker run --network host cloud-point-rpc
|
||||
```
|
||||
|
||||
**Custom Configuration:**
|
||||
You can mount your own `config.yaml` to override the default settings:
|
||||
You also can mount your own `config.yaml` to override the default settings:
|
||||
```bash
|
||||
docker run --network=host -it -v $(pwd)/my_config.yaml:/app/config.yaml cloud-point-rpc
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user