This repo is no longer maintained but the idea of having up to date example apps is still something I'm actively working on.
All of the examples from this repo (and more) have been moved into their own dedicated repos and have been improved upon.
- https://github.com/nickjj/docker-flask-example
- https://github.com/nickjj/docker-django-example
- https://github.com/nickjj/docker-rails-example
- https://github.com/nickjj/docker-node-example
- https://github.com/nickjj/docker-phoenix-example
- https://github.com/oleksandra-holovina/docker-play-example (Thanks Lexie!)
More examples are on the way!
But aren't there a million tutorials out there that do this already?
Yes, but a lot of those tutorials are outdated and there's no quality control. Some might be great, but others may contain questionable decisions. This repo will attempt to stay on the bleeding edge for both Docker and web framework versions, and since it's open source, we can all contribute our best practices together.
- Be as minimal as possible without compromising readability
- Be as fast as possible for build times without compromising readability
- Deal with development and production app configuration in a reasonable way
- Remain updated to take advantage of the latest and greatest Docker / app features
Each framework and language has their own folder. As time goes on, more examples will be added.
It's expected that you already have Docker and Docker Compose installed. If not, head over to Docker's website and install a version of Docker for your operating system of choice.
git clone https://github.com/nickjj/docker-web-framework-examples
cd docker-web-framework-examples
You'll find a README.md
file in each folder with specific instructions and
notes for that framework / language.
This list is ever growing, so if you don't see your web framework of choice, open a PR.
Whether you're fixing a bug, improving an existing app or creating a new example app, your efforts are very much appreciated! Check out the contributing documentation.