🗃️ Removed the .claude/settings.local.json 🗃️
Some checks failed
traefik / release-traefik (push) Has been cancelled

Dockerfile
.dockerignore
.env.scripts
.gitattributes
.gitea/workflows/docker.yaml
.gitignore
LICENSE.md
README.md
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/pkmgr
This commit is contained in:
casjay
2026-05-12 20:09:34 -04:00
parent 66aa6aa9fa
commit 12fa6a80c3
10 changed files with 380 additions and 208 deletions

View File

@@ -3,47 +3,77 @@
traefik README
## Run container
## Install my system scripts
```shell
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
```
## Automatic install/update
```shell
dockermgr update traefik
```
### via command line
## Install and run container
```shell
docker pull casjaysdevdocker/traefik:latest && \
dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/traefik/traefik/latest/rootfs"
mkdir -p "/var/lib/srv/$USER/docker/traefik/rootfs"
git clone "https://github.com/dockermgr/traefik" "$HOME/.local/share/CasjaysDev/dockermgr/traefik"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/traefik/rootfs/." "$dockerHome/"
docker run -d \
--restart always \
--name casjaysdevdocker-traefik \
--hostname casjaysdev-traefik \
--privileged \
--name casjaysdevdocker-traefik-latest \
--hostname traefik \
-e TZ=${TIMEZONE:-America/New_York} \
-v $HOME/.local/share/docker/storage/traefik/traefik/data:/data \
-v $HOME/.local/share/docker/storage/traefik/traefik/config:/config \
-v "$dockerHome/data:/data:z" \
-v "$dockerHome/config:/config:z" \
-p 80:80 \
casjaysdevdocker/traefik:latest
```
### via docker-compose
## via docker-compose
```yaml
version: "2"
services:
traefik:
ProjectName:
image: casjaysdevdocker/traefik
container_name: traefik
container_name: casjaysdevdocker-traefik
environment:
- TZ=America/New_York
- HOSTNAME=casjaysdev-traefik
- HOSTNAME=traefik
volumes:
- $HOME/.local/share/docker/storage/traefik/data:/data:z
- $HOME/.local/share/docker/storage/traefik/config:/config:z
- "/var/lib/srv/$USER/docker/casjaysdevdocker/traefik/traefik/latest/rootfs/data:/data:z"
- "/var/lib/srv/$USER/docker/casjaysdevdocker/traefik/traefik/latest/rootfs/config:/config:z"
ports:
- 80:80
restart: always
```
## Get source files
```shell
dockermgr download src casjaysdevdocker/traefik
```
OR
```shell
git clone "https://github.com/casjaysdevdocker/traefik" "$HOME/Projects/github/casjaysdevdocker/traefik"
```
## Build container
```shell
cd "$HOME/Projects/github/casjaysdevdocker/traefik"
buildx
```
## Authors
🤖 casjay: [Github](https://github.com/casjay) [Docker](https://hub.docker.com/r/casjay) 🤖
CasjaysDevdDocker: [Github](https://github.com/casjaysdev) [Docker](https://hub.docker.com/r/casjaysdevdocker) ⛵
🤖 casjay: [Github](https://github.com/casjay) 🤖
casjaysdevdocker: [Github](https://github.com/casjaysdevdocker) [Docker](https://hub.docker.com/u/casjaysdevdocker) ⛵