Skip to content

Introduction of docker technology to install a complete web server using scripts. Project from 42 São Paulo

Notifications You must be signed in to change notification settings

vitoriagalli/ft_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FT_SERVER

Docker LEMP development environment for WordPress.
For learning purposes only.

Introduction

This project aims to run a website, with multiple services, from a single docker container.

  1. Web server with Nginx
  2. SQL Database with MariaDB
  3. Database web admin with PhpMyAdmin
  4. OpenSource CMS with Wordpress

The project also have a self-signed certificate OpenSSL and an autoindex script on the container's root directory.

Usage

Prerequisites

Docker: https://docs.docker.com/engine/install/

Build Instructions

Docker commands

docker build -t $(IMAGE_NAME) . builds the image
docker run -d -p 80:80 -p 443:443 --name $(CONTAINER_NAME) $(IMAGE_NAME) runs the image as a container
docker stop $(CONTAINER_NAME) stops the container
docker rmi $(IMAGE_NAME) removes the image
docker rm $(CONTAINER_NAME) removes the container
docker exec -it $(CONTAINER_NAME) bash access the server CLI
docker exec $(CONTAINER_NAME) bash /autoindex.sh on enables directory listing
docker exec $(CONTAINER_NAME) bash /autoindex.sh off disables directory listing\

Acess

You can acess the website from your browser:

docker-logo

About

Introduction of docker technology to install a complete web server using scripts. Project from 42 São Paulo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published