Coder Social home page Coder Social logo

triplom / k8s-web-app-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sergioska/k8s-symfony-web-app-as-a-microservice

0.0 0.0 0.0 1.13 MB

Symfony as a microservice (k8s)

License: MIT License

Shell 0.34% JavaScript 3.71% PHP 95.18% HTML 0.02% Dockerfile 0.63% Twig 0.12%

k8s-web-app-php's Introduction

Symfony As A Microservice (web app as a microservice)

This Repo made to explain how to integrate a web application in a microservice context.

Kubernetes directory can be used as a boilerplate in every web based project that works with nginx/php/mysql stack.

As it show above schema kubernetes node contains:

  • a multi container pod for nginx and php-fpm
    • a persistent volume claim to host code
    • a volume for configMap (nginx configuration)
  • a pod with a container for MySQL service
    • a persistent volume claim for mysql storage
  • a service to expose throw forward web server port 80

Run in Kubernetes (minikube)

To deploy application on your local kubernetes cluster you can execute follow bash script command inside kubernetes directory:

    bash start.sh

so copy source code from local to kubernetes node using kubectl cp

   # get web pod name
   kubectl get pods
   # copy source code in web pod
   kubectl cp . default/web-5d5c954d8c-76kmq:/srv/app

Run with docker

Also you can run this project in your local docker environment running docker-compose from the root project:

    docker-compose up

k8s-web-app-php's People

Contributors

sergioska avatar triplom avatar dependabot[bot] 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.