This is a helper container for traefik. It can add, remove and update services. https://s.fascinated.cc/s/traefik-helper
Go to file
Liam f3599cc4ac
All checks were successful
Publish Docker Image / docker (push) Successful in 1m15s
add tail to not spam
2024-04-17 02:39:25 +01:00
.gitea/workflows update readme 2024-01-13 20:07:08 +00:00
.vscode 7 2024-01-13 19:51:28 +00:00
src add tail to not spam 2024-04-17 02:39:25 +01:00
.dockerignore 7 2024-01-13 19:51:28 +00:00
.gitignore 7 2024-01-13 19:51:28 +00:00
Dockerfile meow 2024-01-15 23:00:26 +00:00
LICENSE Upload files to "/" 2024-01-15 23:54:36 +00:00
README.md Update README.md 2024-01-15 23:09:41 +00:00
requirements.txt 7 2024-01-13 19:51:28 +00:00

traefik-helper

This is a helper container for traefik. It can add, remove and update services.

NOTICE

PLEASE PLEASE PLEASE MAKE SURE YOU HAVE A BACKUP OF YOUR CONFIG FILE BEFORE USING THIS CONTAINER. I AM NOT RESPONSIBLE FOR ANY DATA LOSS.
This helper also assumes that you have SSL certificates setup for your services.

Usage

Add command alias

alias traefik-helper='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/traefik/data/config.yml:/app/config.yml -e CONTAINER_NAME=traefik fascinated/traefik-helper:latest python src/manage.py'

List commands

traefik-helper

Windows Alias

function Traefik-Helper {
    $argsAsString = $args -join ' '

    $sshCommand = "ssh root@ip -i C:\Users\you\.ssh\your_ssh_key docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/traefik/data/config.yml:/app/config.yml -e CONTAINER_NAME=traefik fascinated/traefik-helper:latest python src/manage.py $argsAsString"

    Invoke-Expression $sshCommand
}

# Set the alias
Set-Alias -Name "traefik-helper" -Value "Traefik-Helper"