-open https://labs.play-with-docker.com and Add new instance:
git clone https://github.com/anandbhagwat/dockermeetupyaml.git
vim docker-compose.yml
version: '3.0'
services:
webserver:
image: nginx
ports:
- 80:80
webapplication:
image: php
database:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password
#Execute following commands:
docker-compose up
-open https://labs.play-with-docker.com and Add new instance:
git clone https://github.com/anandbhagwat/meetupdockercompose.git
ls
cd meetupdockercompose/
ls
cat Dockerfile
cat Dockerfile.1
cat docker-compose.yml
Execute following commands:
docker-compose up
Your application is deployed
Content type
Image
Digest
Size
203 MB
Last updated
over 7 years ago
docker pull anandbhagwat/github