Skip to main content

Create docker-compose.yml

 Create docker-compose.yml and post bellow text (make sure you removed quote from begging)

services:
  2fauth:
    image: 2fauth/2fauth:latest
    container_name: 2fauth
    restart: unless-stopped
    ports:
      - "8081:8000"
    volumes:
      - ./data:/2fauth
    environment:
      - APP_KEY=base64:BtFvDK7Rz7fKSL5Ogp6bBJmqMbSRZWKNUkZjPHfDA6A=
      - APP_URL=https://2fa.hrdtechnology.com
      - APP_NAME=HRD Authenticator