Skip to content

edithturn/42-ft-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_server 🐋 🐋

This project consists of set up a web server with Nginx, phpMyAdmin, MySQL, WordPress and SSL on Docker

General 🔔

Docker is a standard to build and share containerized apps. General Flow

How to use?

Run the script

./src/build_run.sh

Explanation

# Build the image based on our Dockerfile
docker build -t ft_server .

# Clean other our old containers
docker rm -f $(docker ps -qa)

# Create the container who execute a script on CMMD => setup_application.sh
docker run --name ft_server -it  -p 80:80 -p 443:443 ft_server

Ports

  • Port 80 is where nginx is listening
  • Port 443 is used for secure web browser communication

Nginx Autoindex in "on" :busstop:

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. (For ft_server we are using it as a web serving) Autoindex ON

PhpMyAdmin :busstop:

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. PhpMyAdmin ON

Wordpress :busstop:

WordPress is the simplest, most popular way to create your own website or blog. Wodrpress

MySql database :busstop:

MySQL is a relational database management system based on SQL – Structured Query Language MySql database

Docker Commands

Images

docker build -t ft_server .

Container

# Run container
docker run --name ft_server -it  -p 80:80 -p 443:443 ft_server 
 # Show running containers
docker ps
# Show dead containers
docker ps -a 
# Open the running container
docker exec -it ft_nginx /bin/bash
# Stop the running container
docker stop ft_nginx

Resources 🎃

Graded by Moulinette

Graded by Moulinette

ft_server pdf new curriculum

Download from HERE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published