---
title: "Docker Deployment"
description: "Deploy the walt.id Enterprise API with Docker, including prerequisites, the required config folder, and step-by-step deployment instructions."
stack: "Enterprise Stack (commercial) — version 1.2.1"
stack_version: "1.2.1"
stack_comparison: https://docs.walt.id/community-vs-enterprise.md
canonical_url: https://docs.walt.id/enterprise-stack/setup/deployment/docker-deployment
generated: 2026-11-11
---
# Docker Deployment

This document provides instructions for deploying the [walt.id](http://walt.id) Enterprise API in a Docker
environment. It includes configuration details and deployment steps using `deployment.yaml`.

## Prerequisites

A Docker environment including Docker Daemon, Client and access to Docker Hub is available.
Furthermore, the ***config***-folder with the corresponding config-file must be available to be mounted as volume as
shown in the following commands:

# Running the Docker Container

The Docker container can be started by the following command. Configure `license.conf` as described in [Licensing](https://docs.walt.id/enterprise-stack/setup/licensing.md). Add `LICENSE_STATE_ENCRYPTION_KEY` (at least 32 characters) only when you supply your own secret. Omit it to have one generated:

```bash
docker run -p 3000:3000 -it -v $(pwd)/config:/config -e LICENSE_STATE_ENCRYPTION_KEY="{your-32-plus-character-secret}" -t waltid/waltid-enterprise-api
```

The environment variable JAVA_TOOL_OPTIONS can be set to pass custom Java options to the application. The following
example shows how to add some JVM option as well has how to override some properties from the database configuration.

```bash
docker run -p 3000:3000 -it -v $(pwd)/config:/config -e "JAVA_TOOL_OPTIONS=-Xms1024M -XX:+PrintFlagsFinal -Dconfig.override.mongodb.profile=AWS_DOCUMENTDB_8 -Dconfig.override.mongodb.ssl.enable=true -Dconfig.override.mongodb.ssl.trustStoreLocation=config/aws-truststore.jks -Dconfig.override.mongodb.ssl.trustStorePassword=123456 -Dconfig.override.mongodb.ssl.invalidHostNameAllowed=true" -t waltid/waltid-enterprise-api
```

Set `mongodb.profile` to `AWS_DOCUMENTDB_*`, `AZURE_COSMOSDB_*`, or `DOCUMENTDB_POSTGRES` when you are not running native MongoDB. See [Database](https://docs.walt.id/enterprise-stack/setup/configurations/config-files/database.md).

In order to connect to a MongoDB instance running on the same host then the application, it might be useful to add the
parameter "--network=host" (if supported by the environment).

**Note:**

Please ensure that all `openid/*` endpoints of the Enterprise Stack API are publicly accessible. This is necessary for successful credential
exchanges with external systems.
