Skip to content

Neopuyo/Whales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

docker_logo

Whales

Docker containers

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.

Dockerfiles

docker_logo

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

Docker-compose

compose_logo

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 up

To 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.

About

A 42 project to learn docker and docker-compose

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors