https://github.com/savely-krasovsky/knot-docker
Mirror: https://tangled.sh/@tangled.sh/knot-docker
https://github.com/savely-krasovsky/knot-docker
Last synced: 3 months ago
JSON representation
Mirror: https://tangled.sh/@tangled.sh/knot-docker
- Host: GitHub
- URL: https://github.com/savely-krasovsky/knot-docker
- Owner: savely-krasovsky
- License: mit
- Created: 2025-08-26T19:07:49.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-09-09T12:44:47.000Z (4 months ago)
- Last Synced: 2025-10-05T19:59:06.099Z (3 months ago)
- Language: Dockerfile
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Knot Docker
> **IMPORTANT**
> This is a community maintained repository, support is not guaranteed.
Docker container and compose setup to run a [Tangled](https://tangled.sh) knot
and host your own repository data.
## Pre-built Images
There is a [repository](https://hub.docker.com/r/hqnna/knot) of pre-built images
for tags starting at `v1.4.0-alpha` if you prefer.
```
docker pull hqnna/knot:v1.4.0-alpha
```
Note that these are *not* official images, you use them at your own risk.
## Building The Image
By default the `Dockerfile` will build the latest tag, but you can change it
with the `TAG` build argument.
```sh
docker build -t knot:latest --build-arg TAG=master .
```
The command above for example will build the latest commit on the `master`
branch.
When using compose, it can be specified as a build argument which will be
passed to the builder.
```yaml
build:
context: .
args: { TAG: master }
```
This will for example tell docker to build it using the `master` branch like
the command.
## Setting Up The Image
The simplest way to set up your own knot is to use the provided compose file
and run the following:
```sh
export KNOT_SERVER_HOSTNAME=example.com
export KNOT_SERVER_OWNER=did:plc:yourdidgoeshere
export KNOT_SERVER_PORT=443
docker compose up -d
```
This will setup everything for you including a reverse proxy.