[READ-ONLY] Mirror of https://github.com/FoxxMD/tldraw-selfhosted. A dockerized, selfhostable version of multiplayer tldraw
docker tldraw whiteboard
0

Configure Feed

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

Update with license build arg

FoxxMD (Oct 1, 2025, 11:15 AM EDT) 24fb6d08 b48b94da

+9 -12
+3
Dockerfile
··· 14 14 15 15 COPY --chown=node:node . /usr/src/app 16 16 17 + ARG VITE_TLDRAW_LICENSE_KEY 18 + ENV VITE_TLDRAW_LICENSE_KEY=${VITE_TLDRAW_LICENSE_KEY} 19 + 17 20 RUN yarn build 18 21 19 22 FROM deps as prod-deps
+1 -3
README.md
··· 17 17 18 18 If you deploy this to a valid TLD (`mydomain.com`) **you will need to provide a [license](https://tldraw.dev/community/license).** Hobby licenses, which are free, are available with application. 19 19 20 - To include your license you will need to build the image yourself. 21 - 22 - TODO: Add the build-arg `VITE_TLDRAW_LICENSE_KEY` or fill in using compose.yaml, then build. 20 + To include your license you will need to build the image yourself: Add the build-arg `VITE_TLDRAW_LICENSE_KEY` or fill in using compose.yaml, then build. 23 21 24 22 ## License 25 23
+5 -9
compose.yaml
··· 1 1 services: 2 2 tldraw: 3 3 image: tldraw 4 - build: . 4 + build: 5 + context: . 6 + args: 7 + VITE_TLDRAW_LICENSE_KEY: 5 8 ports: 6 9 - 5757:5757 7 - - 5858:5858 8 - ## behind a reverse proxy the backend URL needs to be set so the client code 9 - ## knows where to communicate to 10 - ## 11 - ## URL should lead to port 5858 on this container 12 - ## 13 - # environment: 14 - # - VITE_WORKER_URL=mydomain-ws.com 10 + - 5858:5858