GithubHelp home page GithubHelp logo

beerfranz / lemonldap-ng-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lemonldapng/lemonldap-ng-docker

0.0 0.0 0.0 70 KB

Dockerize LemonLDAP::NG

License: GNU General Public License v2.0

Shell 17.60% Ruby 3.67% Dockerfile 78.74%

lemonldap-ng-docker's Introduction

LemonLDAP::NG in Docker

LL::NG+Docker

Build the image

Use the docker build command:

docker build --rm -t yourname/lemonldap-ng:version .

Run the image

The image will run LemonLDAP::NG in demo mode (see http://lemonldap-ng.org/documentation/latest/authdemo).

Add auth.example.com/manager.example.com/test1.example.com/test2.example.com to /etc/hosts on the host

echo "127.0.0.1 auth.example.com manager.example.com test1.example.com test2.example.com" | sudo tee -a /etc/hosts

Map the container port 80 to host port 80 (option -p) when you run the container to be able to access it

docker run -d -p 80:80 yourname/lemonldap-ng:version

Then connect to http://auth.example.com with your browser and log in with dwho/dwho.

Configuration

You may use the following environment variables to configure the container

  • SSODOMAIN: change the default example.com domain with something else
  • LOGLEVEL: Set LLNG verbosity (for docker logs). Possible values: error, warn, notice, info, debug
  • FASTCGI_LISTEN_PORT: Listen on a port instead of using a UNIX socket. If you use this variable, you will probably want to map this port on your host.

You can also finely set the hostnames for each site

  • PORTAL_HOSTNAME: change the default auth.example.com domain with something else
  • MANAGER_HOSTNAME: change the default manager.example.com domain with something else
  • HANDLER_HOSTNAME: change the default reload.example.com domain with something else
  • TEST1_HOSTNAME: change the default test1.example.com domain with something else
  • TEST2_HOSTNAME: change the default test2.example.com domain with something else

Example:

docker run -d -e SSODOMAIN=test.local -e LOGLEVEL=debug -p 80:80 yourname/lemonldap-ng:version

Or

docker run -d \
    -e SSODOMAIN=test.local \
    -e PORTAL_HOSTNAME=myportal.test.local \
    -e MANAGER_HOSTNAME=mymanager.test.local \
    -e HANDLER_HOSTNAME=myhandler.test.local \
    -e TEST1_HOSTNAME=mytest1.test.local \
    -e TEST2_HOSTNAME=mytest2.test.local \
    -e LOGLEVEL=debug \
    -e FASTCGI_LISTEN_PORT=9000 \
    -p 80:80 \
    -p 9000:9000 \
    yourname/lemonldap-ng:version

Don't forget to modify your /etc/hosts accordingly

Docker hub

See also https://hub.docker.com/r/coudot/lemonldap-ng/

lemonldap-ng-docker's People

Contributors

coudot avatar tdemaret avatar guimard avatar dmonroy avatar faust64 avatar alexfaraino avatar maxbes avatar a4i avatar apeyroux avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.