From a08722e394f2318ebfd390c0a675e25b6bf8d57a Mon Sep 17 00:00:00 2001 From: Allegro AI <51604379+allegroai-git@users.noreply.github.com> Date: Sun, 10 Nov 2019 00:18:16 +0200 Subject: [PATCH] Update README.md --- README.md | 56 +++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 071c02b..e892cc2 100644 --- a/README.md +++ b/README.md @@ -203,39 +203,39 @@ We are constantly updating, improving and adding to the **trains-server**. New releases will include new pre-built Docker images. When we release a new version and include a new pre-built Docker image for it, upgrade as follows: -* Shut down the docker containers -```bash -$ docker-compose down -``` +1. Shut down the docker containers + ```bash + $ docker-compose down + ``` -* We highly recommend backing up your data directory before upgrading. +1. We highly recommend backing up your data directory before upgrading. - Assuming your data directory is `/opt/trains`, to archive all data into `~/trains_backup.tgz` execute: - - ```bash - $ sudo tar czvf ~/trains_backup.tgz /opt/trains/data - ``` - -
- Restore instructions: - - To restore this example backup, execute: - ```bash - $ sudo rm -R /opt/trains/data - $ sudo tar -xzf ~/trains_backup.tgz -C /opt/trains/data - ``` -
+ Assuming your data directory is `/opt/trains`, to archive all data into `~/trains_backup.tgz` execute: -* Download the latest `docker-compose.yml` file, either [manually](https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml) or execute: + ```bash + $ sudo tar czvf ~/trains_backup.tgz /opt/trains/data + ``` - ```bash - $ curl https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml -o docker-compose.yml - ``` +
+ Restore instructions: -* Spin up the docker containers, it will automatically pull the latest trains-server build -```bash -$ docker-compose up -f docker-compose.yml -``` + To restore this example backup, execute: + ```bash + $ sudo rm -R /opt/trains/data + $ sudo tar -xzf ~/trains_backup.tgz -C /opt/trains/data + ``` +
+ +1. Download the latest `docker-compose.yml` file, either [manually](https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml) or execute: + + ```bash + $ curl https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml -o docker-compose.yml + ``` + +1. Spin up the docker containers, it will automatically pull the latest trains-server build + ```bash + $ docker-compose up -f docker-compose.yml + ``` **\* If something went wrong along the way, check our FAQ: [Docker Upgrade](docs/docker_setup.md#common-docker-upgrade-errors)**