Skip to content

Ready-to-use reverse proxied stacks for Docker in swarm mode

Notifications You must be signed in to change notification settings

gogson/traefiked-stacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traefiked-stacks

Ready-to-use Traefik reverse proxied stacks for Docker in swarm mode.

example use

Stacks

All stacks contains Traefik labels for auto reverse proxying. Reverse proxying is optional and will only work if you start the traefiked stack. You can start all stacks independently.

  • traefiked self reverse-proxied Traefik stack listening to port 80/443
  • whoami simple reverse-proxied whoami for testing purpose
  • swarmpit reverse-proxied Swarmpit stack
  • swirl reverse-proxied Swirl stack

To start a stack

./deploy stack-folder-name

Configuration

Each stack contains it's own .env file for you to configure. You can define custom hostnames for backends and various stack configuration.

Reverse proxy

For the reverse proxy to work, you need to deploy the traefiked stack. The proxy runs on port 80/443 and auto generate SSL certificates.

First, edit the reverse proxy configuration in the traefiked/.env file.

Then, deploy

./deploy traefiked

Proxying a service

You must put your service in the overlay traefiked network (it will be created by the deploy.sh script). You must attach the service to the network, and declare the network as external: look at whoami/docker-stack.yml for an example. Finaly, set the Traefik labels needed with the proxied app port.

Contribute

You're welcome to submit PR for adding new stacks.

TODO

  • Better CLI
  • Check if swarm mode is ON
  • Set root domain configuration during first CLI use
  • On stack deploy: choose hostname / subdomain (avoid editing .env file for it)

About

Ready-to-use reverse proxied stacks for Docker in swarm mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages