Need help with container?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

140 Stars 43 Forks 343 Commits 14 Opened issues


HedgeDoc container image resources

Services available


Need anything else?

Contributors list

HedgeDoc container

Test status #hedgedoc on Try in PWD

HedgeDoc docker images are available in two flavors: Debian and Alpine. These are available at

docker pull
docker pull

We recommend using the Debian version for production deployments and Alpine for expert setups.


  • git (
  • docker (
  • docker-compose (

See more here:


Get started

  1. Install docker and docker-compose, "Docker for Windows" or "Docker for Mac"
  2. Run
    git clone hedgedoc-container
  3. Change to the directory
  4. Run
    docker-compose up
    in your terminal
  5. Wait until see the log
    HTTP Server listening at port 3000
    , it will take few minutes based on your internet connection.
  6. Open


Start your docker and enter the terminal, follow below commands:

cd hedgedoc-container ## enter the directory
git pull ## pull new commits
docker-compose pull ## pull new containers
docker-compose up ## turn on

Migrate from 1.6

Together with the update to HedgeDoc 1.7, the database user name, password and database name have been changed in


In order to migrate the existing database to the new default credentials, run

docker-compose exec database createuser --superuser -Uhackmd postgres
docker-compose exec database psql -Upostgres -c "alter role hackmd rename to hedgedoc; alter role hedgedoc with password 'password'; alter database hackmd rename to hedgedoc;"

before running

docker-compose up

Migrate from docker-hackmd

If you used the

repository before, migrating to
is easy.


is basically a fork of
, all you need to do is replace the upstream URL:
git remote set-url origin
git pull

Now you can follow the regular update steps.


Start your docker and enter the terminal, follow below commands:

 docker-compose exec database pg_dump hedgedoc -U hedgedoc > backup.sql


Before starting the application for the first time, run these commands:

docker-compose up -d database
cat backup.sql | docker exec -i $(docker-compose ps -q database) psql -U hedgedoc

Custom build

The default setting is to use pre-built docker images. If you want to build your own containers uncomment the

section in the
and edit the

If you change the database settings and don't use the

make sure you edit the


View license information for the software contained in this image.

Supported Docker versions

This image is officially supported on Docker version 17.03.1-CE.

Support for older versions (down to 1.12) is provided on a best-effort basis.

Please see the Docker installation documentation for details on how to upgrade your Docker daemon.

User Feedback


If you have any problems with or questions about this image, please contact us through a GitHub issue.

You can also reach many of the project maintainers via our matrix room


You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Happy HedgeDoc :smile:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.