Skip to content

zeroc0d3/docker-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a79f4b2 · Apr 7, 2018

History

24 Commits
Feb 21, 2018
Mar 30, 2018
Feb 21, 2018
Apr 1, 2018
Feb 21, 2018
Feb 21, 2018
Feb 21, 2018
Feb 21, 2018
Feb 21, 2018
Feb 21, 2018
Feb 21, 2018
Apr 1, 2018
Mar 29, 2018
Apr 7, 2018
Feb 21, 2018
Mar 30, 2018
Apr 7, 2018
Apr 1, 2018
Apr 1, 2018
Apr 7, 2018

Repository files navigation

Docker Framework

Flexibility Configuration for Docker Environment. Distribution alpine docker container, use from Docker Alpine.

Concepts

  • Inspired from RoR (Ruby On Rails) and Laravel PHP Framework folder structures for configuration, container, database (db), cache and log.
  • Adopt versioning Dockerfile container.
  • Adopt multi environment container (build & run).
  • Clean code and DRY (Do not Repeat Your self). Reuse configurations for docker-compose.
  • Unit test and healthy check docker container.
  • Available for Kubernetes combination.
  • Use single OS (Operating System) distribution, for easy monitoring and maintaining.

Environments

You can run docker-compose for different environment with selected containers

  • Copy / Rename .env.example to .env file
    cp .env.example .env
    
  • Change to execute script
    chmod a+x run.sh
    
  • Change environment in run_docker.sh file
    ENV="0"                      # (use: "development" or "production" as selected environment)
    CONTAINER_PRODUCTION="..."   # (selected containers will be run in production environment)
    CONTAINER_DEVELOPMENT="..."  # (selected containers will be run in development environment)
    
  • Running script
    ./run.sh
    

Documentation

Roadmap

    • Multi database container & multi version database.
    • Default configuration NGINX (staging, staging-ssl, production, production-ssl).
    • Healthy check docker container.
    • Unit test docker container.
    • Asynchronous / background job for vulnerability scan (security assessment).

License

MIT License