Adopt Compose v2

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof
2022-05-10 11:06:17 +02:00
parent bc95525543
commit 30f613f1a9
68 changed files with 228 additions and 228 deletions

View File

@@ -5,7 +5,7 @@
Project structure:
```
├── docker-compose.yml
├── docker compose.yml
├── Dockerfile
├── .dockerignore
├── .nginx
@@ -22,7 +22,7 @@ Project structure:
```
[_docker-compose.yaml_](docker-compose.yaml)
[_compose.yaml_](compose.yaml)
```
services:
@@ -35,12 +35,12 @@ services:
```
The compose file defines an application with an services `frontend`.
When deploying the application, docker-compose maps port 80 of the frontend service container to port 80 of the host as specified in the file.
When deploying the application, docker compose maps port 80 of the frontend service container to port 80 of the host as specified in the file.
## Deploy with docker-compose
## Deploy with docker compose
```
$ docker-compose up -d
$ docker compose up -d
Building frontend
Sending build context to Docker daemon 1.49MB
@@ -81,7 +81,7 @@ After the application start, navigate to http://localhost in your browser:
Stop and remove the containers
```
$ docker-compose down
$ docker compose down
Stopping frontend ... done
Removing frontend ... done
Removing network react-nginx_default