Files
compose/tinyauth/docker-compose.yml
2025-08-16 21:55:23 +08:00

26 lines
752 B
YAML

name: tinyauth
services:
tinyauth:
image: ghcr.io/steveiliop56/tinyauth:v3
container_name: tinyauth
restart: unless-stopped
networks:
- proxy
env_file:
- docker.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.tinyauth.rule=Host(`tinyauth.example.com`)"
- "traefik.http.routers.tinyauth.entrypoints=websecure"
- "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:
proxy:
external: true