Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realfascinated/traefik-helper
This is a helper container for traefik. It can add, remove and update services.
https://github.com/realfascinated/traefik-helper
Last synced: about 4 hours ago
JSON representation
This is a helper container for traefik. It can add, remove and update services.
- Host: GitHub
- URL: https://github.com/realfascinated/traefik-helper
- Owner: RealFascinated
- License: mit
- Created: 2024-01-15T23:32:35.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-09-14T23:36:33.000Z (about 2 months ago)
- Last Synced: 2024-09-15T06:50:32.010Z (about 2 months ago)
- Language: Python
- Homepage: https://s.fascinated.cc/s/traefik-helper
- Size: 33.2 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
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
```bash
traefik-helper
```## Windows Alias
Ensure you have ran `Set-ExecutionPolicy Unrestricted` in PowerShell as an administrator.
Create the directory `~/Documents/WindowsPowerShell` and create a file called `Microsoft.PowerShell_profile.ps1` in that directory. Add the following code to the file.
```bash
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" -Value "Traefik-Helper"
```This will allow you to run the `traefik` command in PowerShell.