The 42 project called Inception to learn docker, docker-compose and much more. The aim is to create a local server composed of several services.
Each service is a container. All server are connected through a network and each container must be build from a debian image.
For exemple using : FROM wordpress:latest is forbidden.
Each container has its own Dockerfile. The Dockerfiles are located in the srcs folder.
Here the different containers/services :
- π wordpress - content management system for website and blogs
- π mariadb - database management system
- π nginx - a web and reverse proxy server
- π adminer - a lightweight database management tool
- π cAdvisor - a tool for monitoring container performance
- π ftp_server - to transfer files using the File Transfer Protocol
- π myWebsite - a simple html page displayed
- π redis - a caching and data storage tool
All dockers are linked together through a network. The network and all containers are created in the docker-compose.yml file.
Simply using the command :
docker-compose upTo communicate, the containers uses ports.
ports:
- "8080:80"here, in this example, the port 8080 of the host is linked to the port 80 of the container.


