No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Docker repo

2Auth is a docker container using nginx and nodejs to protect your internal resources.

  1. Install docker and docker-compose

  1. Change working directory
cd docker\2Auth
  1. Generate nginx:2auth image from Docker file
sudo docker build -t nginx:2auth .
  1. Edit 2Auth/app/config.js and save changes

  2. Edit 2Auth/nginx/default.conf and save changes - authorization site - private area
  1. Start docker-compose
sudo docker-compose up -d

Additional commands

List containers

docker ps 

Attach to nginx container

docker exec -i -t nginx /bin/bash

Attach to nodejs container

docker exec -i -t nodejs /bin/bash