-
Notifications
You must be signed in to change notification settings - Fork 105
TIP: How to Persist OpenDJ Docker Container Data Between Restarts
Maxim Thomas edited this page Dec 2, 2024
·
1 revision
If you want persist the OpenDJ configuration data, you need to specify a volume that maps /opt/opendj/data
container directory to a local directory. Example with docker-compose.yaml
services:
opendj:
image: openidentityplatform/opendj:latest
ports:
- 1389:1389
- 1636:1636
- 4444:4444
volumes:
- ./opendj-data:/opt/opendj/data
With docker run
command:
docker run -h ldap-01.domain.com \
-p 1389:1389 -p 1636:1636 -p 4444:4444 \
--name ldap-01 \
-v ./opendj-data:/opt/opendj/data \
openidentityplatform/opendj
OpenDJ is an LDAPv3 compliant directory service, which has been developed for the Java platform, providing a high performance, highly available, and secure store for the identities managed by your organization. Its easy installation process, combined with the power of the Java platform makes OpenDJ the simplest, fastest directory to deploy and manage.