diff --git a/docs/user/rpc.md b/docs/user/rpc.md index c160c3223533409c0f76fa5abca9e17d372bcbbb..1c9ddac4108e7affef000bf43c17f8c5c0fdb931 100644 --- a/docs/user/rpc.md +++ b/docs/user/rpc.md @@ -6,6 +6,7 @@ - Add this docker-compose on your server : [docker/compose/gdev-rpc.docker-compose.yml](https://git.duniter.org/nodes/rust/duniter-v2s/-/blob/master/docker/compose/gdev-rpc.docker-compose.yml) +- Rename the file : `mv gdev-mirror.docker-compose.yml docker-compose.yml` - In the same folder, create a `.env` file that defime environment variables `SERVER_DOMAIN` and `PEER_ID`: ``` SERVER_DOMAIN=YOUR_DOMAIN @@ -14,7 +15,7 @@ PEER_ID=Your node peer id Your `PEER_ID` shoud be generated with this command:Â `docker run --rm -it --entrypoint duniter -v $PWD:/var/lib/duniter/ duniter/duniter-v2s:v0.1.0 key generate-node-key --file /var/lib/duniter/node.key` - If you have write access errors run in docker-compose.yml folder : `chmod o+rwX -R .` -- `docker-compose up -d -f gdev-mirror.docker-compose.yml` to start your node +- `docker-compose up -d` to start your node ### Reverse-proxy part (with Nginx) @@ -71,7 +72,7 @@ To go further, read [How to become a (black)smith](./smith.md) ## Upgrade your node with minimal interruption 1. Modify docker image tag on your compose file -2. Run `docker-compose pull`, this will pull the new image. -3. Run `docker-compose up -d --remove-orphans`, this will recreate the container -4. Verify that your node restarted well `docker-compose logs duniter-rpc` +2. Run `docker compose pull`, this will pull the new image. +3. Run `docker compose up -d --remove-orphans`, this will recreate the container +4. Verify that your node restarted well `docker compose logs duniter-rpc` 5. Remove the old image `docker images rmi duniter/duniter-v2s:OLD_TAG`