parent
6596fe607a
commit
97d60dbd9e
|
@ -9,13 +9,13 @@ Docker-Compose is a tool for defining and running multi-container Docker applica
|
|||
The steps to use docker-compose are
|
||||
|
||||
```
|
||||
1)create a Dockerfile which defines the image and can be producible everywhere.
|
||||
1)Create a Dockerfile which defines the image and can be producible everywhere
|
||||
```
|
||||
```
|
||||
2)create a docker-compose yml file to run the services
|
||||
2)Create a docker-compose.yml file to run the services
|
||||
```
|
||||
```
|
||||
3)use docker-compose up to start the sevices specified in docker-compose.yml file
|
||||
3)Use docker-compose up to start the sevices specified in the docker-compose.yml file
|
||||
```
|
||||
|
||||
#### Basic commands in docker-compose
|
||||
|
@ -32,7 +32,7 @@ docker-compose -f docker-compose.yml up
|
|||
docker-compose -f docker-compose.yml up -d
|
||||
```
|
||||
|
||||
* command to run containers after building the images again (note: first time we run docker containers build will happen automatically)
|
||||
* Command to run containers after building the images again (note: first time we run docker containers build will happen automatically)
|
||||
|
||||
```
|
||||
docker-compose -f docker-compose.yml --build -d
|
||||
|
|
Loading…
Reference in New Issue