Giter Site home page Giter Site logo

phamphihungbk / tinny-docker Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 214 KB

๐Ÿš€ Full Docker development environment for Node.js, PHP website.

License: MIT License

Dockerfile 17.59% Makefile 20.60% HCL 16.70% Shell 17.65% PHP 27.08% HTML 0.38%
docker php nodejs digital-ocean workspace terraform mysql digitalocean syslog-ng docker-compose

tinny-docker's Introduction

Tinny Docker

alt text

I implemented some instant Docker image and Terraform script. By using it you can easily to deploy your codebase from local to server with just one command.

Features:

- Workspace for NodeJS
- Workspace for PHP
- Workspace for Python
- Nginx
- MySql
- Phpmyadmin
- Quickly deploy with Terraform
- Centralize logs with Syslog-ng

Folder Structure:

โ”œโ”€โ”€ config                     # contains env files for different environments
โ”œโ”€โ”€ deloyment                  # contains Terraform scripts that supports for deployment
โ”œโ”€โ”€ environment                # contains Dockerfile
โ””โ”€โ”€ web                        # where to put web sourcecode (example: Wordpress)

Available commands (Makefile):

- Run make up-node to start container with NodeJS environment
- Run make up-php to start container with PHP environment
- Run make up-python to start container with Python environment
- Run make build-node to build container with NodeJS environment
- Run make build-php to build container with PHP environment
- Run make build-python to build container with Python environment
- Run make down to stop container
- Run make db-create to create a new table on MySQL
- Run make terraform-validate to check all Terraform config
- Run make terraform-init to install Terraform dependencies
- Run make terraform-plan will show execution plan
- Run make terraform-apply to instantiate new droplet

tinny-docker's People

Contributors

phamphihungbk avatar

Stargazers

 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.