NOTE: This is a fork of devopshobbies/docker-templates with additional modifications. I haven't had the time to submit a PR or make changes based on potential code reviews, as the process of preparing and updating contributions would require more time than I currently have.
This repository is a good source of docker templates added and modified by users as a best practice. You can navigate, check and use them as you wish. This repository was created for educational purposes and remains free forever. Let's grow together - DevOps Hobbies team.
In this repository, we are trying to gather some practical samples of the docker
file templates for each language and technology, so you can use them in your projects.
We are trying to provide docker files and templates as best practices.
A simple bash script to copy a specified folder from a source or template directory to the current working directory.
SOURCE_DIR="/path/to/your/docker-templates" bash /path/to/your/docker-templates/cli.sh -f <folder_name>
you can add an alias
# ~/.my_aliases
newdockerproj() {
(SOURCE_DIR="/path/to/your/docker-templates" bash /path/to/your/docker-templates/cli.sh -f "$1")
}
and just run
# to copy the docker templates for golang
newdockerproj go
# show help - for a list of templates
ndewdockerproj
-f <folder_name>
: Name of the folder to copy.- Copies the folder from
$SOURCE_DIR
or$SOURCE_DIR/templates
to the current path.
SOURCE_DIR
: Directory where folders are stored. Defaults to $HOME
.
We are performing a helpful guide about how you can contribute to the project and You can access it from here.
If you find a problem anywhere in the project even in the CONTRIBUTING.md
file, You can change the file but make sure You understand what are You doing, and if You need any other help, just create an issue and we'll be there to give you one.
You can find different frameworks or use cases in each folder.
- Plain NodeJS: Dockerfile, Readme
- Plain/vanilla version of nodejs with tests: Dockerfile, Readme
- NestJS: Dockerfile, Readme
- Plain Javascript: Readme
- Angular: Dockerfile, Docker Compose, Readme
- Vue.JS: Dockerfile, Readme
- React: Dockerfile, Readme
- Plain PHP: Readme
- Laravel: Dockerfile, Readme
- Plain Go: Dockerfile, Readme
- Plain Java: Readme
- Maven: Dockerfile, Readme
- Plain C# (hello docker example): Dockerfile, Readme
- Python Flask (hello world app): Dockerfile, Readme
- Plain Python with postgres: Dockerfile, Dockerfile Compose, Readme
- Django: Dockerfile, readme required
- Plain C++ (hello world example): Dockerfile, Readme
- Plain Ruby (hello world example): Dockerfile, Readme
- Plain Dart (hello world example): Dockerfile, Readme
- Plain Rust: Dockerfile, Readme