Skip to content

Deploy 2FAuth web app using a docker container in a breeze.

License

Notifications You must be signed in to change notification settings

Bubka/2FAuth-Docker

Repository files navigation

Docker Pulls https://github.com/Bubka/2FAuth-Docker/blob/php/7.4-apache/LICENSE Use PHP7.4

Docker setup for 2FAuth

Deploy 2FAuth using a docker container in a breeze.

2FAuth : A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes

Purpose

This repository contains the necessary files to build the 2fauth/2fauth dockerhub image and run 2FAuth in a docker container via docker-compose.

This docker-compose setup does not provide a full development environment, it is for production only.

How to use it

Dockerfile

You can use it to build your own 2FAuth image if the one on dockerhub does not fit your needs. The image is based on the official php7.4-apache docker image, so it runs an apache2 web server on a debian buster slim distro.

There is no database management system in the image.

Simply runs docker build -t YourImageName . to build it.

docker-compose.yml

This is the best option if you just want to run 2FAuth and use it. It will run the 2FAuth image binded to a MySQL image with persisted volumes.

  • Clone this repo
  • Download this .env.example file in the same folder and rename it .env
  • Edit the .env file and adapt the settings to your needs (see instructions in the file)
  • Open a terminal on the repo directory and run docker-compose up -d && docker-compose logs -f
  • Open your browser on http://localhost/
  • Enjoy :)

Contributing

Feedbacks and bug reporting are always welcome.

Please share your feedback in the 2FAuth discussion board

Please report any issue in the 2FAuth issue tracker