-
-
Notifications
You must be signed in to change notification settings - Fork 110
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/dataWith 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

