It took me quite a while to figure out how to persist the data – mostly because both OpenLDAP and Docker are new to me – and it turns out – command: --copy-service and importantly - config:/etc/ldap/slapd.d do the trick.