A minimal OpenLDAP container setup using osixia/openldap.
-
Create your env file:
cp .env.example .env
Then edit
.envwith your local secrets and router host. -
Start the server:
docker compose up -d
-
Verify its running:
docker ps
-
Login to CLIs with:
docker attach (CLI name)
-
Use to logout
docker compose down -v
docker attach rushcargo-cli_counter-1 docker attach rushcargo-cli_dispatch-1
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
Each user logs in with their uidNumber and password.
- Andres Garcia:
10001/jojosGroup: Counter - Juan Perez:
10002/jojosGroup: Dispatch - Maria Lopez:
10003/jojosGroup: Customer Service - Pedro Ruiz:
10004/jojosGroup: Admin
Example login (not CLIs):
ldapwhoami -x -H ldap://localhost:389 -D "uid=juan,ou=users,dc=atlas,dc=com" -w jojosto see the traefik dashboard in your browser go to the url
dashboard.docker.localhost- TLS options are defined in
traefik-dynamic.ymlundertls.options.modernand applied to routers with:traefik.http.routers.<name>.tls.options=modern@file
- Certificates are generated locally by the
opensslservice and loaded by Traefik from./certs. - Set
TRAEFIK_FRONTEND_HOSTin.envto the host you use in development (for exampleatlas.comin your local hosts file).