# Mongo Express

The stack configuration for the previously used **mongoadmin** container needs to be updated due to the switch to the more modern alternative **mongo-express**.

Please copy the YAML lines below and adjust them if your environment uses different parameters (e.g. environment variables or credentials).

```yaml
mongoadmin:
    image: repo.moovit24.de:443/mcc_mongoexpress:4.12.0.0
    restart: always
    deploy:
      mode: replicated
      replicas: 1
      resources:
        limits:
          memory: 250M
    environment:
      ME_CONFIG_MONGODB_URL: "mongodb://root:bitte@mongodb:27017/admin?authSource=admin"
      # Credentials for web access
      ME_CONFIG_BASICAUTH_USERNAME: admin
      ME_CONFIG_BASICAUTH_PASSWORD: pass
      ME_CONFIG_SITE_BASEURL: "/mongodb"
    volumes:
      - /etc/localtime:/etc/localtime:ro
    networks:
      - mcc
    depends_on:
      - mongodb

```

{% hint style="info" %}

#### Cluster environments

If you are running Helmut4 in a clustered setup, the MongoDB service reference must be adjusted to use **`mongodb1`**.

Update the container configuration as shown below:

```yaml
environment:
      ME_CONFIG_MONGODB_URL: "mongodb://root:bitte@mongodb1:27017/admin?authSource=admin"

depends_on:
      - mongodb1
```

{% endhint %}

We also recommend reviewing the section “[Limit Docker Container RAM Usage](https://docs.helmut.de/helmut4-releases/getting-started/additional-configurations/container-adjustments/limit-docker-container-ram-usage)” to verify that the configured memory limits are still appropriate for your system.

## Accessing MongoDB data

The MongoDB can be accessed via the Mongo Express web interface at:

`http://<server-url>/mongodb`

Within Mongo Express you can browse databases and collections, inspect documents, and perform basic administrative tasks such as verifying data, checking indices, or troubleshooting project and asset entries.

Replace `<server-url>` with the hostname or IP address of your Helmut4 server.
