> For the complete documentation index, see [llms.txt](https://docs.workflowgen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.workflowgen.com/docker/7.14-7.22/custom-domain-names.md).

# Custom Domain Names

## Overview

This section describes some ways to configure domain names in Docker.

{% hint style="info" %}
To configure a domain name in a WorkflowGen container, you can pass the `WFGEN_APP_SETTING_ApplicationUrl=https://somedomain.com/wfgen` environment variable.
{% endhint %}

## Internal domain names

In Docker, there is an internal DNS that handles domain names for containers and machines. You can easily configure an internal domain name for each container just by passing simple parameters. See the following link for more information:

* [Container networking](https://docs.docker.com/config/containers/container-networking/)

## Public-facing domain name

For domain names that are public, you'll typically need an external service (e.g. NameCheap or AWS Route 53) that sells domain names, and then configure that service to point to the public IP of the public-facing containers.

### Obtaining a public IP address

All you need to do is to expose the port of the container (or service) you need and it will be available publicly.

{% hint style="info" %}
You need to configure the front-facing nodes manually with the IP address that you own. There's no load balancer created automatically.
{% endhint %}

```
docker container run `
    # ...
    -p 80:80 `
    # ...
    advantys/workflowgen:7.18.3-win-ltsc2019
```

This will expose the container port `80` to the host's port `80`. The public IP is that of the Docker host.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.workflowgen.com/docker/7.14-7.22/custom-domain-names.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
