Coder Social home page Coder Social logo

vitoriagalli / ft_server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23.94 MB

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

Dockerfile 1.20% PHP 69.99% Shell 23.57% Makefile 5.24%
docker ft-server 42projects

ft_server's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.