2024-01-13 19:36:56 +00:00
|
|
|
# traefik-helper
|
|
|
|
|
2024-01-13 19:51:28 +00:00
|
|
|
This is a helper container for traefik. It can add, remove and update services.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2024-01-13 20:06:08 +00:00
|
|
|
### Add command alias
|
2024-01-13 19:51:28 +00:00
|
|
|
|
|
|
|
```bash
|
2024-01-13 20:06:08 +00:00
|
|
|
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'
|
2024-01-13 19:55:54 +00:00
|
|
|
```
|
|
|
|
|
2024-01-13 20:06:08 +00:00
|
|
|
### Add service
|
2024-01-13 19:55:54 +00:00
|
|
|
|
|
|
|
```bash
|
2024-01-13 20:06:08 +00:00
|
|
|
traefik-helper add [name] [domain] [service url]
|
2024-01-13 19:51:28 +00:00
|
|
|
```
|
2024-01-13 20:07:08 +00:00
|
|
|
|
|
|
|
### Remove service
|
|
|
|
|
|
|
|
```bash
|
|
|
|
traefik-helper remove [name]
|
|
|
|
```
|
|
|
|
|
|
|
|
### List services
|
|
|
|
|
|
|
|
```bash
|
|
|
|
traefik-helper list
|
|
|
|
```
|