Docker

Docker templates

I've put together a collection of Docker Compose templates that I use for various projects. These are production-ready configurations that I've tested and refined over time.

Repository

You can find all the templates here: https://git.aio.sh/assie/docker

The repository includes templates for web applications, databases, development tools, monitoring, and more. Most templates are pretty straightforward.

Quick Start

Clone the Repository

bash
git clone https://git.aio.sh/assie/docker.git && cd docker

Using a Template

  1. Navigate to the desired service directory:
bash
cd templates/nginx
  1. Copy the template to your project:
bash
cp docker-compose.yml /path/to/your/project/
  1. Copy the env file to your project (if any!):
bash
cp .env.example /path/to/your/project/.env
  1. Customize the configuration:
bash
nano docker-compose.yml
  1. Start the services:
bash
docker compose up -d

Template Structure

Each template follows a consistent structure:

structure.mdmd
templates/
├── service-name/
│   ├── docker-compose.yml
│   ├── .env.example
│   ├── README.md
│   └── config/
│       └── .../