Take full control of your security data with a self-hosted, web-based alternative to traditional one-time passcode generators. Designed for both mobile and desktop, this solution ensures you never lose access to your accounts, even if you misplace your smartphone. It delivers fresh TOTP and HOTP security codes directly to your browser, protected by robust encryption and WebAuthn authentication.
Enjoy a comprehensive suite of features:
Regain privacy and ensure your two-factor authentication is always accessible and secure.
services:
2fauth:
image: 2fauth/2fauth:latest
container_name: 2fauth
restart: unless-stopped
ports:
- 8000:8000
volumes:
- ./data:/2fauth
environment:
- APP_NAME=2FAuth
- APP_ENV=production
- APP_DEBUG=false
- SITE_OWNER=${SITE_OWNER}
- APP_KEY=${APP_KEY}
- AUTHENTICATION_GUARD=web-guard
- CACHE_DRIVER=file
- SESSION_DRIVER=fileAPP_KEY=base64:your_generated_32_char_key_here
SITE_OWNER=admin@example.comAuto-fetched 10 minutes ago
Auto-fetched 10 minutes ago