Configuration files for self-hosted Tangled knot

Update instructions to use my fixed Dockerfile

+10 -4
+10 -4
README.md
··· 1 # Tangled.sh Knot 2 3 These 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). 5 6 ## Docker installation 7 8 - 1. In `knot-docker` diretory, create Docker image with `docker build -t knot:latest --build-arg TAG=master .` 9 2. 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` 12 4. Edit `docker-compose.yml` with appropriate `KNOT_SERVER_HOSTNAME` and `KNOT_SERVER_OWNER` 13 4. Create Docker container with `docker-compose up -d` 14 5. 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!) 16 17 Once the container is up, the Git repositories directory 18 needs 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 ``` 27 28 (This should probably be done in the Dockerfile when building the image.) 29 30 ## Repository troubleshooting 31
··· 1 # Tangled.sh Knot 2 3 These 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). 6 7 ## Docker installation 8 9 + 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) .` 13 2. 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` 16 4. Edit `docker-compose.yml` with appropriate `KNOT_SERVER_HOSTNAME` and `KNOT_SERVER_OWNER` 17 4. Create Docker container with `docker-compose up -d` 18 5. 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!) 20 21 + <!-- 22 Once the container is up, the Git repositories directory 23 needs 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 ``` 32 33 (This should probably be done in the Dockerfile when building the image.) 34 + --> 35 36 ## Repository troubleshooting 37