Code Monkey home page Code Monkey logo

docker-fumes's Introduction

lcfumes/docker

Containers

Proxy

Centos:7, Nginx, PHP5.6, Php-Fpm

MariaDb:10.0

This project was made to use with composer.json. To run it alone, you need do change some configurations in the file docker-compose.yml.

If you wanna run it alone, you can write me. It will be a pleasure to help you.

Dependencies

apt-get install curl php5-cli php5-curl

Using in composer.json

"repositories": [
    {
      "url": "[email protected]:lcfumes/docker-fumes.git",
      "type": "git"
    }
],
"require-dev": {
    "lcfumes/docker": "dev-master"
}

Runing Composer

Local Machine:

composer install

Live Machine

composer install --no-dev

About the project

You need to create a "tmp/nginx" folder, with write permission.

cd /project/
mkdir tmp/
mkdir tmp/nginx
chmod -R 777 tmp

This project was made to run in the ZendFramework. If you use another framework, my sugestion is to create a simbolic link called "public".

Example in Silex Framework.

cd /project/
ln -s web public

Install Docker

wget -qO- https://get.docker.com/ | sh

Added your user to Docker group

sudo usermod -aG docker YOUR_USER

Install Docker-Compose

curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

or you can use pip

pip install -U docker-compose

Apply executable permissions to the binary

chmod +x /usr/local/bin/docker-compose

To Run

Up machines

cd /yourproject/vendor/lcfumes/docker/
docker-compose up -d

Stop

docker-compose stop
docker-compose rm

Database

mysql -uroot -proot -hdatabase.dev

Browser

http://webproject.dev

Docker HUB

This project use the images from Docker Hub

lcfumes/nginx-php56 - https://hub.docker.com/r/lcfumes/nginx-php56/

jwilder/nginx-proxy - https://hub.docker.com/r/jwilder/nginx-proxy/

mariadb - https://hub.docker.com/_/mariadb/

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.