Skip to content

Kaucrow/sendcure

Repository files navigation

Basic OpenLDAP Server in Docker

A minimal OpenLDAP container setup using osixia/openldap.

Quick start

  1. Create your env file:

    cp .env.example .env

    Then edit .env with your local secrets and router host.

  2. Start the server:

    docker compose up -d
  3. Verify its running:

    docker ps
  4. Login to CLIs with:

     docker attach (CLI name)
  5. Use to logout

       docker compose down -v

Command to log into the CLIs

docker attach rushcargo-cli_counter-1 docker attach rushcargo-cli_dispatch-1

User logins

Each user logs in (binds) with their full DN and password. The server is available at ldap://localhost:389 and the base DN is dc=atlas,dc=com.

User bind DNs and passwords:

  • Andres Garcia: uid=andres.garcia,ou=users,dc=atlas,dc=com / jojos
  • Juan Perez: uid=juan,ou=users,dc=atlas,dc=com / jojos
  • Maria Lopez: uid=maria,ou=users,dc=atlas,dc=com / jojos
  • Pedro Ruiz: uid=pedro,ou=users,dc=atlas,dc=com / jojos

CLIs Logins

Each user logs in with their uidNumber and password.

  • Andres Garcia: 10001 / jojos Group: Counter
  • Juan Perez: 10002 / jojos Group: Dispatch
  • Maria Lopez: 10003 / jojos Group: Customer Service
  • Pedro Ruiz: 10004 / jojos Group: Admin

Example login (not CLIs):

ldapwhoami -x -H ldap://localhost:389 -D "uid=juan,ou=users,dc=atlas,dc=com" -w jojos

traefik

to see the traefik dashboard in your browser go to the url

dashboard.docker.localhost

Traefik TLS (local self-signed)

  • TLS options are defined in traefik-dynamic.yml under tls.options.modern and applied to routers with:
    • traefik.http.routers.<name>.tls.options=modern@file
  • Certificates are generated locally by the openssl service and loaded by Traefik from ./certs.
  • Set TRAEFIK_FRONTEND_HOST in .env to the host you use in development (for example atlas.com in your local hosts file).

About

A secure courier management system featuring TUI apps, a TypeScript Express backend, and a web frontend, containerized with Docker and Traefik.

Topics

Resources

Stars

Watchers

Forks

Contributors