https://github.com/masb0ymas/docker-traefik
Setup Docker Compose with Traefik
https://github.com/masb0ymas/docker-traefik
docker docker-compose ghost minio portainer-ce traefik traefik-proxy
Last synced: 3 months ago
JSON representation
Setup Docker Compose with Traefik
- Host: GitHub
- URL: https://github.com/masb0ymas/docker-traefik
- Owner: masb0ymas
- License: mit
- Created: 2023-05-27T12:28:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T11:25:23.000Z (5 months ago)
- Last Synced: 2025-03-10T06:06:26.587Z (4 months ago)
- Topics: docker, docker-compose, ghost, minio, portainer-ce, traefik, traefik-proxy
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Docker Traefik
## Features
- Traefik Proxy with Auto TLS Support
- Portainer (Container Management UI)
- Dozzle (Logger)
- PostgreSQL (Private Network)
- Redis (Private Network)## Prerequisites
- Docker and Docker Compose installed
- Domain name with DNS configured
- Cloudflare account (if using Cloudflare)
- `htpasswd` utility (`apache2-utils` package)## Setup Instructions
### 1. Initial Configuration
1. Generate Basic Auth credentials
```bash
htpasswd -c -B -b users.htpasswd your_username your_password
```
Copy the generated hash from `users.htpasswd`### 2. Update Configuration Files
1. Update Basic Auth in configuration
```yaml
basicAuth:
users:
- "admin:$2y$10$pWij3ooPsrOieZs7SkIBw.sOwM/r90DqMI3nli6XGMSt799.v15zq" # Replace with your hash
```2. Configure ACME (Let's Encrypt) email
```yaml
certificatesResolvers:
letsencrypt:
acme:
email: [email protected]
storage: acme.json
```### 3. SSL Configuration
- If using Cloudflare, set SSL/TLS encryption mode to "Full (strict)" in Cloudflare dashboard
- This is required for proper SSL handshake between Cloudflare and your server### 4. Deploy
1. Install Make (if not installed)
```bash
# For Debian/Ubuntu
sudo apt-get install make
```2. Run the setup script
```bash
make setup
```The setup script will automatically configure and start all services.