Run tinyauth rootless, distroless and truly tiny.
Tinyauth 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.
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 | 11notes/tinyauth:3.6.2 | ghcr.io/steveiliop56/tinyauth |
---|---|---|
image size on disk | 9.16MB | 33.2MB |
process UID/GID | 1000/1000 | 0/0 |
distroless? | ✅ | ❌ |
rootless? | ✅ | ❌ |
name: "proxy"
services:
tinyauth:
image: "11notes/tinyauth:3.6.2"
read_only: true
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"
networks:
backend:
# this iamge is used to expose the docker socket rootless, distroless and read-only
# you can find out more on https://github.com/11notes/docker-socket-proxy
socket-proxy:
image: "11notes/socket-proxy:2.1.3"
read_only: true
user: "0:0"
volumes:
- "/run/docker.sock:/run/docker.sock:ro"
- "socket-proxy:/run/proxy"
restart: "always"
traefik:
image: "11notes/traefik:3.2.0"
depends_on:
socket-proxy:
condition: "service_healthy"
restart: true
command:
# this is an example configuration, do not use in production
# consult https://github.com/11notes/docker-traefik for a proper and save config!
- "--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:/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"
- "traefik.http.routers.whoami.service=whoami"
- "traefik.http.services.whoami.loadbalancer.server.port=80"
networks:
backend:
volumes:
socket-proxy:
networks:
frontend:
backend:
internal: true
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) | |
DISABLE_CONTINUE |
Disables the continue button after successful auth | true |
These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.
It is of my opinion that the :latest
tag is dangerous. Many times, I’ve introduced breaking changes to my images. This would have messed up everything for some people. If you don’t want to change the tag to the latest semver, simply use the short versions of semver. Instead of using :3.6.2
you can use :3
or :3.6
. 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.
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:3.6.2
docker pull ghcr.io/11notes/tinyauth:3.6.2
docker pull quay.io/11notes/tinyauth:3.6.2
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
- 11notes/distroless:curl - app to execute HTTP requests
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 18.07.2025, 07:40:51 (CET)