2024-10-09 17:30:14 +02:00
|
|
|
# Traefik Standalone
|
2024-10-06 11:51:08 +02:00
|
|
|
|
2024-10-09 17:30:14 +02:00
|
|
|
## Introduction
|
|
|
|
|
|
|
|
This project sets up a standalone Traefik reverse proxy using Docker Compose. Traefik is a modern HTTP reverse proxy and
|
|
|
|
load balancer that makes deploying microservices and integrating them with your existing infrastructure easy.
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
|
|
|
- [Introduction](#introduction)
|
|
|
|
- [Prerequisites](#prerequisites)
|
|
|
|
- [Installation](#installation)
|
|
|
|
- [Usage](#usage)
|
|
|
|
- [License](#license)
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
- Docker: Make sure Docker is installed and running on your system.
|
|
|
|
- Docker Compose: You also need Docker Compose to orchestrate the container setup.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
1. Clone the repository:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/your-repository-url/traefik-standalone.git
|
|
|
|
cd traefik-standalone
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Copy the environment variable template:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cp .env.dist .env
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Customize the `.env` file as necessary for your environment.
|
|
|
|
|
2024-10-09 17:37:13 +02:00
|
|
|
4. Touch acme.json on the parent folder and grant him the proper rights
|
|
|
|
|
|
|
|
```bash
|
|
|
|
touch ../acme.json && chmod 600 ../acme.json
|
|
|
|
5. ```
|
|
|
|
|
2024-10-09 17:30:14 +02:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
1. Start the Traefik service with Docker Compose:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker compose up -d
|
|
|
|
```
|
|
|
|
2. You can now start adding your services and configure Traefik to reverse proxy to them.
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file for details.
|