Commit deb6becc authored by Christophe Benz's avatar Christophe Benz

Improve README

parent da6a0af2
......@@ -39,6 +39,8 @@ ansible-playbook --inventory scaleway_inventory.yml --limit validata-next --user
Then copy [api.secrets.env.template](./production/api.secrets.env.template) and [ui.secrets.env.template](./production/ui.secrets.env.template) to `/etc/docker/compose/validata` on server (removing the `.template` extension), and fill-in the values. Read [validata-api](https://git.opendatafrance.net/validata/validata-api) and [validata-ui](https://git.opendatafrance.net/validata/validata-ui) documentation for more information about environment variables.
The installed version uses Validata API `v0.2.0` and Validata UI `v0.2.0`. Follow the next section to update to a new version.
### Deploy a new version
To deploy a new version of Validata:
......@@ -46,6 +48,11 @@ To deploy a new version of Validata:
```bash
ssh root@go-next.validata.fr
cd /etc/docker/compose/validata
```
Edit `docker-compose.yml` to update the image tags of `api` and `ui` services, according to the latest version you want to deploy. After saving the file:
```bash
docker-compose pull
docker-compose up -d
```
......@@ -57,7 +64,16 @@ docker-compose logs
docker-compose logs -f
```
To check and delete older images (among other things):
If it fails you can rollback to the previous version by doing:
```bash
docker images
docker image tag <IMAGE ID> <REPOSITORY>:<TAG>
# example: docker image tag 031a719e625b git.opendatafrance.net:4567/validata/validata-ui:v0.2.0
docker-compose up -d
```
If you want to free disk space, you can prune old Docker objects (images, containers, etc.):
```bash
docker images
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment