Change docker-compose to docker compose
This commit is contained in:
parent
86315e0f18
commit
8f5dd7bd9d
6 changed files with 8 additions and 8 deletions
|
@ -38,7 +38,7 @@ services:
|
||||||
Start your `reverse-proxy` with the following command:
|
Start your `reverse-proxy` with the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose up -d reverse-proxy
|
docker compose up -d reverse-proxy
|
||||||
```
|
```
|
||||||
|
|
||||||
You can open a browser and go to `http://localhost:8080/api/rawdata` to see Traefik's API rawdata (you'll go back there once you have launched a service in step 2).
|
You can open a browser and go to `http://localhost:8080/api/rawdata` to see Traefik's API rawdata (you'll go back there once you have launched a service in step 2).
|
||||||
|
@ -68,7 +68,7 @@ The above defines `whoami`: a web service that outputs information about the mac
|
||||||
Start the `whoami` service with the following command:
|
Start the `whoami` service with the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose up -d whoami
|
docker compose up -d whoami
|
||||||
```
|
```
|
||||||
|
|
||||||
Go back to your browser (`http://localhost:8080/api/rawdata`) and see that Traefik has automatically detected the new container and updated its own configuration.
|
Go back to your browser (`http://localhost:8080/api/rawdata`) and see that Traefik has automatically detected the new container and updated its own configuration.
|
||||||
|
@ -92,7 +92,7 @@ IP: 172.27.0.3
|
||||||
Run more instances of your `whoami` service with the following command:
|
Run more instances of your `whoami` service with the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose up -d --scale whoami=2
|
docker compose up -d --scale whoami=2
|
||||||
```
|
```
|
||||||
|
|
||||||
Go back to your browser (`http://localhost:8080/api/rawdata`) and see that Traefik has automatically detected the new instance of the container.
|
Go back to your browser (`http://localhost:8080/api/rawdata`) and see that Traefik has automatically detected the new instance of the container.
|
||||||
|
|
|
@ -31,7 +31,7 @@ Our starting point is the docker-compose configuration file, to start the k3s cl
|
||||||
You can start it with:
|
You can start it with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose -f k3s.yml up
|
docker compose -f k3s.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
@ -46,7 +46,7 @@ For the DNS challenge, you'll need:
|
||||||
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run `docker-compose up -d` within the folder where you created the previous file.
|
- Run `docker compose up -d` within the folder where you created the previous file.
|
||||||
- Wait a bit and visit `https://your_own_domain` to confirm everything went fine.
|
- Wait a bit and visit `https://your_own_domain` to confirm everything went fine.
|
||||||
|
|
||||||
!!! Note
|
!!! Note
|
||||||
|
|
|
@ -32,7 +32,7 @@ For the HTTP challenge you will need:
|
||||||
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run `docker-compose up -d` within the folder where you created the previous file.
|
- Run `docker compose up -d` within the folder where you created the previous file.
|
||||||
- Wait a bit and visit `https://your_own_domain` to confirm everything went fine.
|
- Wait a bit and visit `https://your_own_domain` to confirm everything went fine.
|
||||||
|
|
||||||
!!! Note
|
!!! Note
|
||||||
|
|
|
@ -32,7 +32,7 @@ For the TLS challenge you will need:
|
||||||
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Run `docker-compose up -d` within the folder where you created the previous file.
|
- Run `docker compose up -d` within the folder where you created the previous file.
|
||||||
- Wait a bit and visit `https://your_own_domain` to confirm everything went fine.
|
- Wait a bit and visit `https://your_own_domain` to confirm everything went fine.
|
||||||
|
|
||||||
!!! Note
|
!!! Note
|
||||||
|
|
|
@ -46,7 +46,7 @@ Create a `docker-compose.yml` file with the following content:
|
||||||
|
|
||||||
Replace `whoami.localhost` by your **own domain** within the `traefik.http.routers.whoami.rule` label of the `whoami` service.
|
Replace `whoami.localhost` by your **own domain** within the `traefik.http.routers.whoami.rule` label of the `whoami` service.
|
||||||
|
|
||||||
Now run `docker-compose up -d` within the folder where you created the previous file.
|
Now run `docker compose up -d` within the folder where you created the previous file.
|
||||||
This will start Docker Compose in background mode.
|
This will start Docker Compose in background mode.
|
||||||
|
|
||||||
!!! info "This can take a moment"
|
!!! info "This can take a moment"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue