You can run your own copy of EtherPK from a Docker image instead of using app.etherpk.com. The image is ghcr.io/appsoftwareltd/etherpk-client. It is public, so pulling it needs no account and no docker login. It is built from the etherpk-client repository on GitHub, and its tags are listed on the image's package page.

The container only serves the app to your browser. Your browser opens the notes folder on this device and reads and writes its Markdown files, so the container needs no folder mount and holds none of your notes.

A copy you run this way is for folder graphs, which are Markdown files in a folder on this device. Open synced graphs at app.etherpk.com instead. See Running EtherPK On Your Own Computer for what your own copy can do, the folder access check for your browser, and how to run the same program without Docker.

Before you begin

Start EtherPK with one command

To try the image without writing a file:

docker run --rm -p 127.0.0.1:3000:3000 ghcr.io/appsoftwareltd/etherpk-client:latest

The image listens on port 3000 inside the container. 127.0.0.1:3000:3000 publishes that port on this device only. Press Ctrl+C to stop the container, and --rm then removes it.

Start EtherPK with Docker Compose

Docker Compose keeps the image, the port and the settings in one file, and starts EtherPK again after a restart of this device.

  1. Create a folder for the file, for example etherpk.

  2. In that folder, save this as compose.yaml:

    name: etherpk
    
    services:
        etherpk-client:
            # The public image, built from https://github.com/appsoftwareltd/etherpk-client.
            # Set ETHERPK_VERSION in .env to pin a release, for example 0.41.0.
            image: ghcr.io/appsoftwareltd/etherpk-client:${ETHERPK_VERSION:-latest}
            container_name: etherpk-client
            restart: unless-stopped
            # `latest` moves with each release, so fetch it on every `up`.
            pull_policy: always
            ports:
                # address:host port:container port. The image listens on 3000.
                # 127.0.0.1 lets only this device reach EtherPK.
                - "${ETHERPK_BIND_ADDRESS:-127.0.0.1}:${ETHERPK_PORT:-3000}:3000"
            # Settings go here, one per line.
            # environment:
            #     PUBLIC_DICTIONARY_URL: ""
            healthcheck:
                # The image has BusyBox wget and no curl.
                test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/"]
                interval: 30s
                timeout: 5s
                retries: 3
                start_period: 20s
    
  3. Open a terminal in the folder and start EtherPK:

    docker compose up -d
    
  4. Check that the container is running:

    docker compose ps
    

    The status reads Up and, after about 30 seconds, (healthy).

  5. In Chrome or Edge, go to http://127.0.0.1:3000. On your first visit, you see the EtherPK home page.

  6. Select Open The App, then Choose a folder in the Create a Folder Graph panel.

These commands, run in the same folder, manage the container:

Command What it does
docker compose up -d Pulls the image and starts EtherPK in the background.
docker compose ps Shows whether the container is running and healthy.
docker compose logs -f Shows the program's output as it is written.
docker compose down Stops EtherPK and removes the container.

Your notes are in your notes folder, outside the container, so docker compose down does not touch them.

Choose a version

The example runs the newest release. To stay on one release, save a file named .env beside compose.yaml with the version in it:

ETHERPK_VERSION=0.41.0

Then run docker compose up -d again. The image has these tags:

Tag What it runs
<version>, for example 0.41.0 That release
<major>.<minor>, for example 0.41 The newest release in that line
latest The newest release
edge The newest build of the source, released or not

Address and port

The browser keeps a separate list of graphs for each address (host name and port), so keep EtherPK on the same address and port every time. To use another port, add it to .env:

ETHERPK_PORT=3080

Chrome and Firefox refuse some ports, such as 6000, with the error ERR_UNSAFE_PORT. Choose a port that is not on that list.

With the example file, only this device can reach EtherPK. Setting ETHERPK_BIND_ADDRESS=0.0.0.0 in .env lets other devices on your network reach it too. They still cannot open a folder from it, because an address such as http://192.168.1.20:3000 is not a secure address. To use EtherPK from other devices, put it behind a web server that serves it over HTTPS.

Settings

Each setting is an environment variable. Add it under environment: in compose.yaml, then run docker compose up -d again, because the program reads its settings when it starts. This example switches spell check dictionary downloads off:

        environment:
            PUBLIC_DICTIONARY_URL: ""

The settings are the same as for the Node bundle, except HOST and PORT, which the ports: line replaces. See the Settings table in Running EtherPK On Your Own Computer for more information.

Update EtherPK

The container does not update itself while it runs. To move to the newest release:

docker compose pull
docker compose up -d

If .env pins a version, change ETHERPK_VERSION first.

Start-up errors

"port is already allocated" or "address already in use"

Another program is already using the port on this device. Set ETHERPK_PORT in .env to a free port and keep using that one, because a new port is a new address with its own graph list.

The container is "unhealthy"

Read the program's output with docker compose logs. It names the setting or error that stopped the program from answering.

No folder button on the Graphs page

If the Graphs page shows neither Open folder nor Choose a folder, the browser cannot open a folder. See Running EtherPK On Your Own Computer for the folder access check.