mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
Adopt Compose v2 (#240)
* Adopt Compose v2 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
bc95525543
commit
667bd9facb
79 changed files with 237 additions and 237 deletions
|
@ -5,7 +5,7 @@
|
|||
Project structure:
|
||||
|
||||
```
|
||||
├── docker-compose.yml
|
||||
├── compose.yaml
|
||||
├── 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue