Skip to content

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

License

Notifications You must be signed in to change notification settings

phamphihungbk/tinny-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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