Update documentation

This commit is contained in:
allegroai
2020-01-05 09:19:37 +02:00
parent dedac3b2fe
commit a7c30453db
3 changed files with 13 additions and 13 deletions

View File

@@ -101,9 +101,9 @@ To launch **trains-server** on macOS:
git clone https://github.com/allegroai/trains-server.git
cd trains-server
1. Run `docker-compose` with the unified docker image.
1. Run `docker-compose` with the docker compose file.
docker-compose -f docker-compose-unified.yml up
docker-compose -f docker-compose.yml up
Your server is now running on [http://localhost:8080](http://localhost:8080)
@@ -146,7 +146,7 @@ Restart *trains-server* by first stopping the Docker containers and then restart
```bash
docker-compose down
docker-compose up -f docker-compose-unified.yml
docker-compose up -f docker-compose.yml
```
**Note**: If you are using a different docker-compose YAML file, specify that file.
@@ -287,12 +287,12 @@ from working correctly.
You can check for port conflicts in the logs in `/opt/trains/log`.
If a port conflict occurs, change the MongoDB and / or Elastic ports in the `docker-compose-unified.yml`,
If a port conflict occurs, change the MongoDB and / or Elastic ports in the `docker-compose.yml`,
and then run the Docker compose commands to restart the **trains-server** instance.
To change the MongoDB and / or Elastic ports for **trains-server**:
1. Edit the `docker-compose-unified.yml` file.
1. Edit the `docker-compose.yml` file.
1. In the `services/trainsserver/environment` section, add the following environment variable(s):

View File

@@ -80,11 +80,11 @@ To launch **trains-server** on Linux or macOS:
1. Download the **trains-server** docker-compose YAML file.
cd /opt/trains
curl https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose-unified.yml -o docker-compose-unified.yml
curl https://raw.githubusercontent.com/allegroai/trains-server/master/docker-compose.yml -o docker-compose.yml
1. Run `docker-compose` with the downloaded configuration file.
sudo docker-compose -f docker-compose-unified.yml up
sudo docker-compose -f docker-compose.yml up
Your server is now running on [http://localhost:8080](http://localhost:8080) and the following ports are available: