---
title: "Premium self-hosted bundle - Image Proxy service container"
description: "How-to deploy the Image Proxy service from the self-hosted bundle as a docker image."
canonical_url: "https://www.tiny.cloud/docs/tinymce/6/bundle-imageproxy-container/"
md_url: "https://www.tiny.cloud/docs/tinymce/6/bundle-imageproxy-container/index.md"
version: "6"
last_updated: "2022-03-31T00:32:33Z"
tokens: 1147
---
Important This page documents TinyMCE 6. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../latest/).
# Premium self-hosted bundle - Image Proxy service container

## Deploy the TinyMCE image proxy server-side component using Docker (self-hosted enterprise bundles)

The TinyMCE image proxy server-side component can be deployed using Docker or a container orchestration application such as Kubernetes. Tiny provides a pre-configured package for creating a Image Proxy Docker image.

> **Warning:** Do not push this docker image to a publicly accessible container registry. Doing so will constitute a breach of the Tiny Self-Hosted Software License Agreement, *including*:
> 
> - [The Tiny Self-Hosted Software License Agreement - (Enterprise Users)](/legal/tiny-self-hosted-enterprise-agreement/).
> - [The Tiny Self-Hosted Software License Agreement - (OEM & SaaS Users)](/legal/tiny-self-hosted-oem-saas-agreement/).

### Procedure

The following procedure covers downloading, configuring, building and testing the TinyMCE Image Proxy Docker image.

> **Note:** This procedure assumes that a TinyMCE self-hosted enterprise bundle has been extracted as described in [Download and extract the TinyMCE Self-hosted Bundle](../bundle-intro-setup/#download-and-extract-the-tinymce-self-hosted-bundle).

1. Navigate into the `tinymce-services` folder.

```sh
cd tinymce-selfhosted/tinymce-services/
```
2. Extract the contents of `ephox-image-proxy-docker-starter-kit.zip`, such as:

```sh
unzip ephox-image-proxy-docker-starter-kit.zip -d image-proxy-service-dockerfile
```
3. Copy `ephox-image-proxy.war` into the directory containing the extracted files, such as:

```sh
cp ephox-image-proxy.war image-proxy-service-dockerfile/
```
4. Navigate into the `image-proxy-service-dockerfile` folder.

```sh
cd image-proxy-service-dockerfile
```
5. Set the permissions on the extracted files to executable.

```sh
chmod +x *.sh
```
6. *Optional*: Edit the `image-proxy` configuration setting in `config/ephox-image-proxy-docker-env.conf`. The configurable setting is in the `image-proxy` section of the file. For example:

```properties
image-proxy {
  image-size = 10000000 // 10MB in bytes
}
```
For information on the `image-proxy` configuration setting, see: [Configure server-side components - `image-proxy`](../configure-imageproxy-service/#image-proxy).
7. *Optional*: Edit the `http` configuration settings in `config/ephox-image-proxy-docker-env.conf`. The configurable settings are in the `http` section of the file. For example:

```properties
http {
  max-connections = 100
  max-connections-per-host = 10
  max-redirects = 10
  max-retries = 3
  request-timeout-seconds = 10
  trust-all-cert = false
  websphere = {
    use-ssl-config = true
  }
}
```
For information on the `http` configuration setting, see: [Configure server-side components - `http`](../configure-common-settings-services/#http).
8. *Optional*: Configure the service to use a HTTP proxy by updating `config/ephox-image-proxy-docker-env.conf`. See: [Configure server-side components](../configure-required-services/).
9. Create an `origins.env` file in the same directory as the `Dockerfile`, and specify the Hypertext Transfer Protocol (HTTP) and domain name of sites hosting the TinyMCE editor (`allowed-origins`). Up to 99 origins can be added without editing `config/ephox-image-proxy-docker-env.conf`.

For example:

```properties
ORIGIN0=example.net
ORIGIN1=example
ORIGIN2=http://example.org
```
For information on `allowed-origins`, see: [Configure server-side components - allowed-origins](../configure-required-services/#allowed-origins).
10. As the root user or Administrator, build the TinyMCE Image Proxy Docker image using the following command:

```sh
docker build -t tinymce-image-proxy-service .
```
11. As the root user or Administrator, deploy the service using the following command:

```sh
docker run -d -p 8081:8080 --env-file origins.env tinymce-image-proxy-service
```
Where:

  - `-p 8081:8080` maps the container port `8080` to local port `8081`.
  - `--env-file origins.env` adds the allowed origins to the container.
12. To verify that the Docker container is deployed and the image proxy is running, execute:

```sh
curl http://localhost:8081/ephox-image-proxy/
```
The response from the `curl` command should be:

```sh
Image proxy service is running.
```
The TinyMCE Image Proxy Docker image can now be pushed to a private container registry for deployment on [Kubernetes](https://kubernetes.io/), [Docker Swarm](https://docs.docker.com/engine/swarm/) or [OpenShift](https://www.openshift.com/).
