Docker config for @recaptime.dev's Knot server on Hack Club Nest. knot.hackclub.community
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add custom MOTD + setup Compose for hosting on Nest

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+16 -6
+1
Dockerfile
··· 32 32 run openssl rand -hex 16 | passwd --stdin git 33 33 run mkdir -p /home/git/repositories && chown -R git:git /home/git 34 34 copy --from=builder /usr/bin/knot /usr/bin 35 + copy motd.txt /home/git/motd 35 36 run mkdir /app && chown -R git:git /app 36 37 37 38 healthcheck --interval=60s --timeout=30s --start-period=5s --retries=3 \
+6 -6
docker-compose.yml
··· 3 3 build: 4 4 context: . 5 5 args: 6 - UID: 1000 7 - GID: 1000 6 + UID: 2897 7 + GID: 2897 8 8 environment: 9 - KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME} 10 - KNOT_SERVER_OWNER: ${KNOT_SERVER_OWNER} 9 + KNOT_SERVER_HOSTNAME: "knot.hackclub.community 10 + KNOT_SERVER_OWNER: "did:plc:i5m7ags2eqs5zras4cg2xkll" 11 11 KNOT_SERVER_DB_PATH: /app/knotserver.db 12 12 KNOT_REPO_SCAN_PATH: /home/git/repositories 13 13 KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444 ··· 16 16 - ./repositories:/home/git/repositories 17 17 - ./server:/app 18 18 ports: 19 - - "5555:5555" 20 - - "2222:22" 19 + - "44289:5555" 20 + - "33939:22" 21 21 restart: always 22 22 frontend: 23 23 image: caddy:alpine
+9
motd.txt
··· 1 + Welcome to @recaptime.dev's Knot server on Hack Club Nest for the Hack Club Community! 2 + 3 + By using this service, you agree to the following policies: 4 + - Hack Club Code of Conduct: https://hackclub.com/conduct 5 + - Recap Time Squad Community Code of Conduct: https://policies.recaptime.dev/coc 6 + - Knot Server Usage Terms: https://tangled.org/recaptime.dev/knot-docker-nest/blob/recaptime-dev%2Fmain/docs/terms.md 7 + 8 + Questions? Ping @ajhalili2006 on #recaptime-dev:hackclub.slack.com or file a issue 9 + at https://tangled.org/recaptime.dev/knot-server-docker.