Skip to content

# Configuration Template for Docker Compose, Docker stack

Notifications You must be signed in to change notification settings

attapon-th/traefik-setup

Repository files navigation

Treafik Setup Helper

Prerequisites

  1. Install docker

  2. Init docker swarm

    docker swarm init
    # or
    docker swarm init --advertise-addr 127.0.0.1
  3. Create docker network name proxy

    docker network create --attachable --driver overlay proxy

Deploy

deploy traefik and portainer

expose default port: 80, 443 and 8080

  1. Clone the repository

    git clone https://github.com/attapon-th/traefik-setup.git traefik
  2. Go to the directory

    cd traefik
  3. Create Logs folder (required sudo)

    sudo mkdir /var/log/traefik
  4. Gen Self-Signed for traefik

    ./gen-cert.sh
  5. run docker stack

    edit: vi docker/traefik-stack.yml

    docker stack deploy -c traefik-stack.yaml traefik
  6. run portainer

    docker stack deploy -c portainer-stack.yaml portainer

Using Default setup

Portainer: https://localhost/portainer

Traefik Dashboard: https://localhost:8080/dashboard

About

# Configuration Template for Docker Compose, Docker stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages