Giter VIP home page Giter VIP logo

deployer's Introduction

Deployer

A Docker project for php Deployer https://github.com/REBELinBLUE/deployer, Which is a very nice tool for deploying php applications expescially Laravel application.

Note: This project is in Development so things can be changed.

How to use this

I recomend to use with docker-compose which is tool for composing the docker containers in a yaml file. You can learn more about docker compose in this page

Sample docker-compose.yml

version: "2"

services:
  db:
    image: mysql:5.6
    environment:
      - MYSQL_ROOT_PASSWORD=toor
      - MYSQL_DATABASE=deployerdb
    // If you want to persist data across container start and stop
    // volumes:
    //  - hostFolder:/var/lib/mysql

  php_deployer:
    image: katakampavankumar/deployer:latest
    // If you want to persist data across container start and stop
    //volumes: 
    // - hostFolder1:/data
    ports:
      - 8081:80
    expose:
      - 9000
    links:
      - db:db
    environment:
      - DB_TYPE=mysql
      - DB_HOST=db
      - DB_DATABASE=deployerdb
      - DB_USERNAME=root
      - DB_PASSWORD=toor
      - CACHE_DRIVER=redis
      - QUEUE_DRIVER=redis
      - APP_KEY=SomeRandomStringSomeRandomString
    volumes:
      - /var/www

Points to remember when using this docker file

  1. Environment variables which you will give at .env file shold be given as docker environment variables.
  2. If it is first time you are running, you must ssh in to container and migrate the database. To do so docker exec -it {docker_container_name} bash and then php artisan migrate.

Installed items in this Docker build

  1. PHP5-fpm
  2. nginx
  3. redis (we can use seperate container if wanted but in future)
  4. supervisor for monitoring

deployer's People

Contributors

knvpk avatar

Watchers

 avatar  avatar

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.