Hey Sam,
Have you deleted the ‘sonatype-work’ directory since your previous attempts? Once nexus has started once with Orient then it will default to that. That being said it looks like Nexus is still trying to use Orient. You shouldn’t need to add anything to the Dockerfile just to your compose file should be sufficient.
Here is an example of running Nexus 3 with docker compose which should work for H2:
services:
nexus3:
image: sonatype/nexus3:3.70.4
ports:
- "8081:8081"
environment:
- INSTALL4J_ADD_VM_PARAMS=-Xms4G -Xmx4G -XX:MaxDirectMemorySize=4G -Djava.util.prefs.userRoot=/nexus-data/javaprefs -Dnexus.licenseFile=/etc/nexus-license/license.lic
- NEXUS_DATASTORE_ENABLED=true
volumes:
- /opt/nexus/docker-volumes/docker-compose-nexus3:/nexus-data