[docs] fixed docker description

This commit is contained in:
Artur Mukhamadiev 2026-01-26 00:37:43 +03:00
parent dfa4b156e9
commit dc82c29556

View File

@ -29,7 +29,7 @@ meson test -C build -v
## Docker ## Docker
You can build and run the server using Docker. You can build and run the cli using Docker.
### 1. Build Image ### 1. Build Image
```bash ```bash
@ -37,20 +37,12 @@ docker build -t cloud-point-rpc .
``` ```
### 2. Run Container ### 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** > *Server is not configured to run through container, if you need, contact me*
```bash
docker run -p 8080:8080 cloud-point-rpc
```
**Option B: Host Network (For Simplicity/Performance)** You also can mount your own `config.yaml` to override the default settings:
```bash
docker run --network host cloud-point-rpc
```
**Custom Configuration:**
You can mount your own `config.yaml` to override the default settings:
```bash ```bash
docker run --network=host -it -v $(pwd)/my_config.yaml:/app/config.yaml cloud-point-rpc docker run --network=host -it -v $(pwd)/my_config.yaml:/app/config.yaml cloud-point-rpc
``` ```