Configuration files for self-hosted Tangled knot

Update instructions to use my fixed Dockerfile

+10 -4
+10 -4
README.md
··· 1 1 # Tangled.sh Knot 2 2 3 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). 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). 5 6 6 7 ## Docker installation 7 8 8 - 1. In `knot-docker` diretory, create Docker image with `docker build -t knot:latest --build-arg TAG=master .` 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) .` 9 13 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` 14 + 3. Ensure `repositories` and `server` are owned by `www-data` 15 + with `chown www-data:www-data repositories server` 12 16 4. Edit `docker-compose.yml` with appropriate `KNOT_SERVER_HOSTNAME` and `KNOT_SERVER_OWNER` 13 17 4. Create Docker container with `docker-compose up -d` 14 18 5. Knot is now ready for reverse proxy from `KNOT_SERVER_HOSTNAME:443` to local port 5555 15 19 (knot verification will not work over HTTP port 80!) 16 20 21 + <!-- 17 22 Once the container is up, the Git repositories directory 18 23 needs to be specified explicitly as `/home/git/repositories` in `AuthorizedKeysCommand` 19 24 (see [knot-hosting](https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md#repositories)). ··· 26 31 ``` 27 32 28 33 (This should probably be done in the Dockerfile when building the image.) 34 + --> 29 35 30 36 ## Repository troubleshooting 31 37