Giter Site home page Giter Site logo

docker-webstack's Introduction

Docker Web Stack

This is general stack for the web development environment with preset Nginx, PHP, MariaDB & MongoDB

You can use this setup for multiple projects.

Put in your project under projects folder and set your nginx.conf there.

Structure

Projects\YOUR_PROJECT_FOLDER\nginx.conf

Please see the example project on how to configure your nginx.conf file projects/example

SubModule project

if you're using git for your projects. you can add that under projects folder using submodule command

cd projects
git submodule add -f [email protected]:hanafiah/example.git 

Virtual host

make sure to set virtual host on hosts file

Mac/Linux

sudo vim /etc/hosts

windows

  1. open notepad as administratio
  2. open hosts file located at
C:\Windows\System32\drivers\etc\hosts

add the following

127.0.0.1 www.example.local

once saved, you should be able to access site from

http://www.example.local

Load Example

run the following command

git submodule update --init 

To Start Docker

run the following command inside your docker-general directory

docker-compose up -d

To stop

docker-compose stop

Alt text

Using php composer

https://github.com/hanafiah/docker-webstack/wiki/How-to-use-composer

docker-webstack's People

Contributors

hanafiah avatar ashrulpuo avatar

Watchers

James Cloos avatar

Forkers

piiyel19

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.