Skip to content

A Docker Compose setup of Traefik for Ozone Development

Notifications You must be signed in to change notification settings

mekomsolutions/traefik-docker-compose-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traefik v2 HTTPS (SSL) on localhost

This repo is a minimal template to use Traefik v2 on localhost with HTTPS support.

To get started, just clone this repo:

git clone https://github.com/mekomsolutions/traefik-docker-compose-dev.git

Next, go to the root of the repo (cd traefik-ssl-self-signed) and generate certificates using mkcert :

# If it's the first install of mkcert, run
mkcert -install

# Note (macOS): mkcert may ask for your password multiple times during install (Keychain + system trust store). This is expected.

# Generate certificate for domain "docker.localhost", "domain.local" and their sub-domains
mkcert -cert-file certs/local-cert.pem -key-file certs/local-key.pem "docker.localhost" "*.docker.localhost" "domain.local" "*.domain.local"

Create networks that will be used by Traefik:

docker network create web

Now, start containers with :

# Start Traefik
docker-compose -f docker-compose.yml up -d
# Start "whoami" example
docker-compose -f whoami.yml up

You can now go to your browser at whoami.docker.localhost 🚀 !

Note: you can access to Træfik dashboard at: traefik.docker.localhost

About

A Docker Compose setup of Traefik for Ozone Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •