info:To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
---
# How to self-host the docs site **(FREE SELF)**
The following guide describes how to use a local instance of the docs site with
a self-managed GitLab instance.
## Run the docs site
The easiest way to run the docs site locally it to pick up one of the existing
Docker images that contain the HTML files.
Pick the version that matches your GitLab version and run it, in the following
examples 14.5.
### Host the docs site using Docker
The Docker images use a built-in webserver listening on port `4000`, so you need
to expose that.
In the server that you host GitLab, or any other server that your GitLab instance
can talk to, you can use Docker to pull the docs site:
```shell
docker run -it--rm-p 4000:4000 registry.gitlab.com/gitlab-org/gitlab-docs:14.5
```
If you use [Docker compose](../install/docker.md#install-gitlab-using-docker-compose)
to host your GitLab instance, add the following to `docker-compose.yaml`: