···1# Tangled.sh Knot
23These are the config files for the Tangled knot hosted at [knot.ionchy.ca](https://knot.ionchy.ca),
4-built using [knot-docker](https://tangled.sh/@tangled.sh/knot-docker).
056## Docker installation
78-1. In `knot-docker` diretory, create Docker image with `docker build -t knot:latest --build-arg TAG=master .`
00092. In this directory, create bind mount directories with `mkdir keys repositories server`
10-3. Ensure `repositories` and `server` are owned by a USER with UID/GUID `1000:1000`
11- with `chown USER:USER repositories server`
124. Edit `docker-compose.yml` with appropriate `KNOT_SERVER_HOSTNAME` and `KNOT_SERVER_OWNER`
134. Create Docker container with `docker-compose up -d`
145. Knot is now ready for reverse proxy from `KNOT_SERVER_HOSTNAME:443` to local port 5555
15 (knot verification will not work over HTTP port 80!)
16017Once the container is up, the Git repositories directory
18needs to be specified explicitly as `/home/git/repositories` in `AuthorizedKeysCommand`
19(see [knot-hosting](https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md#repositories)).
···26```
2728(This should probably be done in the Dockerfile when building the image.)
02930## Repository troubleshooting
31
···1# Tangled.sh Knot
23These are the config files for the Tangled knot hosted at [knot.ionchy.ca](https://knot.ionchy.ca),
4+built using [knot-docker](https://tangled.sh/@ionchy.ca/knot-docker).
5+Detailed instructions on hosting a knot can be found at [knot-hosting](https://tangled.sh/@ionchy.ca/knot-docker).
67## Docker installation
89+These instructions assume a user `www-data` on the host for Docker to use.
10+11+1. In `knot-docker` directory, create Docker image with
12+ `docker build -t knot:latest --build-arg TAG=master --build-arg UID=$(id -u www-data) --build-arg GID=$(id -u www-data) .`
132. In this directory, create bind mount directories with `mkdir keys repositories server`
14+3. Ensure `repositories` and `server` are owned by `www-data`
15+ with `chown www-data:www-data repositories server`
164. Edit `docker-compose.yml` with appropriate `KNOT_SERVER_HOSTNAME` and `KNOT_SERVER_OWNER`
174. Create Docker container with `docker-compose up -d`
185. Knot is now ready for reverse proxy from `KNOT_SERVER_HOSTNAME:443` to local port 5555
19 (knot verification will not work over HTTP port 80!)
2021+<!--
22Once the container is up, the Git repositories directory
23needs to be specified explicitly as `/home/git/repositories` in `AuthorizedKeysCommand`
24(see [knot-hosting](https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md#repositories)).
···31```
3233(This should probably be done in the Dockerfile when building the image.)
34+-->
3536## Repository troubleshooting
37