This commit is contained in:
Jarold Wong
2018-10-17 18:10:26 -07:00
committed by Manish Giri
parent 0572ad60fd
commit 4211489db1

View File

@ -9,10 +9,10 @@ Docker-Compose is a tool for defining and running multi-container Docker applica
The steps to use docker-compose are The steps to use docker-compose are
``` ```
1)create a Dockerfile which defines the image and can be produsable every where. 1)create a Dockerfile which defines the image and can be producible every where.
``` ```
``` ```
2)create a docke-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 docker-compose.yml file
@ -32,7 +32,7 @@ docker-compose -f docker-compose.yml up
docker-compose -f docker-compose.yml up -d docker-compose -f docker-compose.yml up -d
``` ```
* command to run containers after buildingthe 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 docker-compose -f docker-compose.yml --build -d