


run tinyauth rootless and distroless.
Tinyauth (created by steveiliop56) is a simple authentication middleware that adds a simple login screen or OAuth with Google, Github and any provider to all of your docker apps. It supports all the popular proxies like Traefik, Nginx and Caddy.
What can I do with this? This image will run tinyauth rootless and distroless for more security, including disabling it's telemetry in code.
Why should I run this image and not the other image(s) that already exist? Good question! Because ...
Important
- ... this image runs rootless as 1000:1000
- ... this image has no shell since it is distroless
- ... this image is auto updated to the latest version via CI/CD
- ... this image has a health check
- ... this image runs read-only
- ... this image is automatically scanned for CVEs before and after publishing
- ... this image is created via a secure and pinned CI/CD process
- ... this image is very small
If you value security, simplicity and optimizations to the extreme, then this image might be for you.
Below you find a comparison between this image and the most used or original one.
| image | size on disk | init default as | distroless | supported architectures |
|---|---|---|---|---|
| steveiliop56/tinyauth | 41MB | 0:0 | ❌ | amd64, arm64 |
- /tinyauth/var - Directory of SQLite database and static assets
name: "auth"
x-lockdown: &lockdown
# prevents write access to the image itself
read_only: true
# prevents any process within the container to gain more privileges
security_opt:
- "no-new-privileges=true"
services:
tinyauth:
image: "11notes/tinyauth:5.0.4"
<<: *lockdown
environment:
APP_URL: "https://${FQDN_TINYAUTH}"
# secret must be a 32 Byte long string (32 characters)
SECRET: ${SECRET}
# admin / admin, please do not use in production!
USERS: "admin:$2y$12$zzekhr74SUez9vo8TK2Be.mJ4EMX44k7whOogQo4F/2i84a6Rl6U6"
labels:
- "traefik.enable=true"
- "traefik.http.routers.tinyauth.rule=Host(`${FQDN_TINYAUTH}`)"
- "traefik.http.routers.tinyauth.entrypoints=https"
- "traefik.http.routers.tinyauth.tls=true"
- "traefik.http.routers.tinyauth.service=tinyauth"
- "traefik.http.services.tinyauth.loadbalancer.server.port=3000"
- "traefik.http.middlewares.tinyauth.forwardauth.address=http://tinyauth:3000/api/auth/traefik"
volumes:
- "tinyauth.var:/tinyauth/var"
networks:
backend:
socket-proxy:
# for more information about this image checkout:
# https://github.com/11notes/docker-socket-proxy
image: "11notes/socket-proxy:2.1.6"
<<: *lockdown
user: "0:0"
volumes:
- "/run/docker.sock:/run/docker.sock:ro"
- "socket-proxy.run:/run/proxy"
restart: "always"
traefik:
# for more information about this image checkout:
# https://github.com/11notes/docker-traefik
depends_on:
socket-proxy:
condition: "service_healthy"
restart: true
image: "11notes/traefik:3.5.4"
<<: *lockdown
command:
# this is an example configuration, do not use in production
- "--ping=true"
- "--ping.terminatingStatusCode=204"
- "--global.checkNewVersion=false"
- "--global.sendAnonymousUsage=false"
- "--api.dashboard=true"
- "--api.insecure=true"
- "--log.level=INFO"
- "--log.format=json"
- "--providers.docker.exposedByDefault=false"
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
ports:
- "80:80/tcp"
- "443:443/tcp"
- "8080:8080/tcp"
networks:
frontend:
backend:
volumes:
- "socket-proxy.run:/var/run"
sysctls:
net.ipv4.ip_unprivileged_port_start: 80
restart: "always"
whoami:
image: "traefik/whoami:latest"
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`${FQDN_WHOAMI}`)"
- "traefik.http.routers.whoami.entrypoints=https"
- "traefik.http.routers.whoami.tls=true"
- "traefik.http.routers.whoami.middlewares=tinyauth@docker"
- "traefik.http.routers.whoami.service=whoami@docker"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
networks:
backend:
volumes:
tinyauth.var:
socket-proxy.run:
networks:
frontend:
backend:
internal: trueTo find out how you can change the default UID/GID of this container image, consult the RTFM.
| Parameter | Value | Description |
|---|---|---|
user |
docker | user name |
uid |
1000 | user identifier |
gid |
1000 | group identifier |
home |
/tinyauth | home directory of user docker |
| Parameter | Value | Default |
|---|---|---|
TZ |
Time Zone | |
DEBUG |
Will activate debug option for container image and app (if available) |
These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.
It is my opinion that the :latest tag is a bad habbit and should not be used at all. Many developers introduce breaking changes in new releases. This would messed up everything for people who use :latest. If you don’t want to change the tag to the latest semver, simply use the short versions of semver. Instead of using :5.0.4 you can use :5 or :5.0. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version. Which in theory should not introduce breaking changes.
If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!
docker pull 11notes/tinyauth:5.0.4
docker pull ghcr.io/11notes/tinyauth:5.0.4
docker pull quay.io/11notes/tinyauth:5.0.4
This image supports unraid by default. Simply add -unraid to any tag and the image will run as 99:100 instead of 1000:1000.
This image supports nobody by default. Simply add -nobody to any tag and the image will run as 65534:65534 instead of 1000:1000.
Important
This image is not based on another image but uses scratch as the starting layer. The image consists of the following distroless layers that were added:
- 11notes/distroless - contains users, timezones and Root CA certificates, nothing else
- 11notes/distroless:localhealth - app to execute HTTP requests only on 127.0.0.1
Tip
- Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
- Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services
Caution
- The example compose has a default user account, please provide your own user account and do not blindly copy and paste
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releases for breaking changes. If you have any problems with using this image simply raise an issue, thanks. If you have a question or inputs please create a new discussion instead of an issue. You can find all my other repositories on github.
created 13.03.2026, 06:46:47 (CET)
