I learned about Docker in previous notes. After awhile, I learned about Docker Compse on this tutorial
What Docker Compose does is to combine Docker Containers in one file. You can start/stop all containers with one command.
You can take a look how docker-compose.yml looks like:
- Docker Compose practice (MEAN stack)
- https://github.com/wataruoguchi/practive-node-js-and-docker/tree/master
- MongoDB
- Express
- NodeJS
- Docker Compose practice (LAMP stack)
-
https://github.com/wataruoguchi/practive-node-js-and-docker/tree/lamp
-
Apache
-
MariaDB
-
PHP
-
LAMP stack does not use
- package.json
- app.js
There is Dockerfile because I was following the tutorial. However, it's no longer used as docker-compose.yml does the same thing.
Reference:
- https://docs.docker.com/compose/
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-14-04
- https://www.linux.com/learn/introduction-docker-compose-tool-multi-container-applications
Learning
Learning