This project provides a Copier template to quickly scaffold a
Traefik setup using Docker and Docker Compose.
It is designed to support both local development and production
deployment with SSL and Let's Encrypt.
- 🐳 Docker Compose setup split into
common,devel, andprod - 🌍 Local domain:
*.localhost - 🔐 Production domain:
*.simetri-sinergi.id - 🔒 Automatic SSL certificates via Let's Encrypt
- 📊 Traefik Dashboard available in local and production (with password protection)
- ⚡ Ready-to-use scripts (
up.shanddown.sh) for managing the stack
.
├── README.md
├── copier.yml
├── scripts
│ ├── up.sh
│ └── down.sh
├── traefik
│ ├── traefik.yml
│ ├── dynamic/
│ └── acme.json
└── {{ project_slug }}/
├── docker-compose.common.yaml
├── docker-compose.devel.yaml
└── docker-compose.prod.yaml
flowchart LR
%% Client
subgraph Client
Browser
end
%% Reverse proxy
Browser -->|"HTTP/HTTPS"| Traefik[(Traefik)]
%% Docker stack
subgraph Docker
Traefik <-->|"labels"| Services
subgraph Services
S1[Odoo / App / pgAdmin / Superset]
end
end
%% Certs & dashboard
Traefik -->|"TLS_LE"| ACME[(acme.json)]
Traefik -->|"Dashboard"| Dashboard{{/dashboard}}
%% Styling
classDef svc fill:#ffffff,stroke:#888,stroke-width:1px
classDef infra fill:#f7f7f7,stroke:#888,stroke-width:1px
class Traefik infra
class Services svc
Notes:
- Local: domain
*.localhost(no HTTPS), dashboard accessible without auth. - Production: domain
*.simetri-sinergi.id, HTTPS via Let’s Encrypt, dashboard protected with basic-auth.
copier copy gh:simetri-sinergi/traefik-copier-template my-traefik-stack
cd my-traefik-stacksudo docker compose -f docker-compose.common.yaml -f docker-compose.devel.yaml up -d- Access dashboard at 👉 http://traefik.localhost
sudo docker compose -f docker-compose.common.yaml -f docker-compose.prod.yaml up -d- Access dashboard at 👉 https://traefik.simetri-sinergi.id
(username:admin, password:admin1234)
- SSL email:
odoo@simetri-sinergi.id - Local domain:
traefik.localhost - Production domain:
traefik.simetri-sinergi.id
This project is licensed under the MIT License.
See LICENSE for details.
💡 Generated with the help of ChatGPT
