Skip to content

Docker Compose setup for starting Træfik with Let's Encrypt

License

Notifications You must be signed in to change notification settings

solution-libre/docker-traefik

Repository files navigation

Træfik with Docker Compose

Table of Contents

  1. Description
  2. Setup
  3. Usage
  4. Reference
  5. Development
  6. Contributors

Description

Docker Compose setup for starting Træfik with Let's Encrypt.

Setup

Create an external network:

docker network create web

Clone this repo:

cd /opt
git clone https://github.com/solution-libre/docker-traefik.git traefik
cd traefik

Declare environment variables or copy the .env.dist to .env and adjust its values.

Usage

cd /opt/traefik
docker compose up -d

Reference

Environment variables

ACME_DNS_CHALLENGE

Activate DNS-01 Challenge. (Default: false)

ACME_DNS_CHALLENGE_PROVIDER

Use a DNS-01 based challenge provider rather than HTTPs.

ACME_EMAIL

Email address used for ACME registration. (Default: [email protected])

ACME_HTTP_CHALLENGE

Activate HTTP-01 Challenge. (Default: false)

ACME_TLS_CHALLENGE

Activate TLS-ALPN-01 Challenge. (Default: true)

DEFAULT_DOMAIN

Default TLS domains. (Default: my.domain.tld)

HTTP_PORT

HTTP listen port. (Default: 80)

HTTPS_PORT

HTTPs listen port. (Default: 443)

Development

Solution Libre's repositories are open projects, and community contributions are essential for keeping them great.

Fork this repo on GitHub

Contributors

The list of contributors can be found at: https://github.com/solution-libre/docker-traefik/graphs/contributors