mirror of
https://github.com/traefik/traefik.git
synced 2025-09-27 16:51:24 +02:00
Updated the test-it example according to the latest docker version
This commit is contained in:
parent
e2b42ca57b
commit
593c0e7ce2
@ -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`:
|
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
|
```yaml
|
||||||
version: '2'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
proxy:
|
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:
|
Now, create a folder named `test` and create a `docker-compose.yml` in it with this content:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '2'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
whoami:
|
whoami:
|
||||||
@ -154,8 +154,7 @@ networks:
|
|||||||
Then, start and scale it in the `test` folder:
|
Then, start and scale it in the `test` folder:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose up -d
|
docker-compose up --scale whoami=2 -d
|
||||||
docker-compose scale whoami=2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, test load-balancing between the two services `test_whoami_1` and `test_whoami_2`:
|
Finally, test load-balancing between the two services `test_whoami_1` and `test_whoami_2`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user