Steps:
- Install docker compose
- Create docker-compose YAML file
- Execute docker compose
docker-compose.yml
redis:
image: redis
webapp:
image: mywebapp
ports:
- 5000:80
links:
- redis
image: redis
webapp:
image: mywebapp
ports:
- 5000:80
links:
- redis
Script:
docker-compose up
container names will be prefixed with the directory name from which this script is being executed.
No comments:
Post a Comment