Giter Club home page Giter Club logo

asp's Issues

Single image containing `nginx` and `php`

Current

Separate nginx and php images

Expectation

Single image containing nginx and php.

Discussion

Currently the nginx and php are in separate images.

Benefits:

  • Separation of concerns principle
  • Independent scalability of nginx and php
  • Better security

Drawbacks:

  • More difficult to deploy. Requires two separate containers to serve one application. Application does not work until both containers have started
  • More difficult to upgrade, since two tags must be bumped
  • Environment variables for the PHP application are specified only on the PHP container only, which is confusing
  • nginx.conf config file requires hostname of php, which means that either: 1) nginx container may require an env variable like PHP_HOSTNAME which overrides a value in nginx.conf (which is not conventional and difficult to understand), or 2) user needs to use a custom nginx.conf. Instead, if they were in the same container, 127.0.0.1 may simply be used.

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.