From 593c0e7ce2041bc127a3f752f00b4ebbbbea2a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Cro=C3=ABs?= Date: Tue, 13 Mar 2018 08:42:03 +0100 Subject: [PATCH] Updated the test-it example according to the latest docker version --- docs/index.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 1f1968753..cb883342a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -103,7 +103,7 @@ docker run -d -p 8080:8080 -p 80:80 -v $PWD/traefik.toml:/etc/traefik/traefik.to You can test Træfik easily using [Docker compose](https://docs.docker.com/compose), with this `docker-compose.yml` file in a folder named `traefik`: ```yaml -version: '2' +version: '3' services: proxy: @@ -134,7 +134,7 @@ In a browser, you may open [http://localhost:8080](http://localhost:8080) to acc Now, create a folder named `test` and create a `docker-compose.yml` in it with this content: ```yaml -version: '2' +version: '3' services: whoami: @@ -154,8 +154,7 @@ networks: Then, start and scale it in the `test` folder: ```shell -docker-compose up -d -docker-compose scale whoami=2 +docker-compose up --scale whoami=2 -d ``` Finally, test load-balancing between the two services `test_whoami_1` and `test_whoami_2`: