Example for using Instant2FA with Django's built-in authentication system.
- Docker Compose 1.8.0+
- Instant2FA API credentials. You can generate these at https://dashboard.instant2fa.com/signup
-
Update the
ACCESS_KEYandACCESS_SECRETenvironment variables indocker-compose.ymlwith your credentials -
Start the container for the application with the
docker-compose upcommand -
At this point the application should be running at port
8000on your Docker host. If you are using a Docker Machine VM, you can use thedocker-machine ip MACHINE_NAMEcommand to get the IP address. If you're using Dinghy on OS X, you can access the application atmydjangoapp.docker/. -
Log in with username
adminand passwordpasswordand see how Instant2FA works!