Giter VIP home page Giter VIP logo

docker-examples's Issues

why a 'data' container in the php+nginx example ?

I was curious why your nginx+php-fpm example uses a separate 'data' container based on busybox to provide the volumes. When I run the example via docker-compose the data container exits immediately, but the volumes work fine between nginx and the php-fpm container of course. This isn't a pattern I've seen documented before, is there a particular reason for the third tiny container ?

Explore automatic host-to-container DNS resolution/routing

There are some interesting solutions to the problem of "how do I use friendly domain names that can be automatically/easily configured" with Docker containers. Some important background:

Add PHP-FPM + Nginx Example

In this example, I'd like to highlight customizing base images using Dockerfiles, especially installing extra packages (the right way) and adding a HEALTHCHECK.

Add Drupal example

Something more real-worldish, and more Dockerish, than examples I've seen so far (e.g. no mega-container with Apache+PHP+Composer+everything-under-the-sun inside).

If you're going to use Docker, don't jam in all the bad things about legacy deployment into one massive 1.2+ GB container!

Also, if there's any easy way to work on simple configurability (á la Drupal VM to make something like a 'Drupal VM lite', I'd like to explore it. So far most of the good Docker Drupal examples I've seen are a pain to customize/adapt, while most of the flexible Docker Drupal examples I've seen are slow, bloated, messy, and offer very little benefit over using plain old VMs.

Add Symfony Example

Symfony is a PHP framework for web projects.

I'd like to add an example that builds a generic 'hello-world' Symfony app and connects to SQLite in a separate container.

One interesting aspect (and one about which I wrestle with in the 'this-isn't-something-for-prod-therefore-why-is-it-done-in-acontainer' way) is the idea of doing Composer work inside Docker.

IMO, it would be better to do all the app build process in a separate pipeline, then run the app in Docker containers. Technically the build process could be managed in some Docker containers... but you should always run your app in the exact same way as Production. And Production should not have Composer, nor should it be involved in your build process (especially since that saps up resources!).

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.