# Nexus 3.70.1-02 with H2 Database

**URL:** <https://community.sonatype.com/t/nexus-3-70-1-02-with-h2-database/14681>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [March 25, 2025, 9:17am UTC](https://community.sonatype.com/t/nexus-3-70-1-02-with-h2-database/14681 "2025-03-25T09:17:12Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![laurencet](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/laurencet/32/3456_2.png) [@laurencet](https://community.sonatype.com/u/laurencet)\
**Post date:** [March 26, 2025, 3:57pm UTC](https://community.sonatype.com/t/nexus-3-70-1-02-with-h2-database/14681/6 "2025-03-26T15:57:44Z")

</div>

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:

```auto
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

```

---

_[View the full topic](https://community.sonatype.com/t/nexus-3-70-1-02-with-h2-database/14681)._
