Skip to content
Snippets Groups Projects
Commit 67c25d30 authored by vincentux's avatar vincentux
Browse files

Correction MR

parent 5b587896
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !67. Comments created here will be created in the context of that merge request.
......@@ -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)
......@@ -70,7 +71,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`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment