mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
feat: add option for self-hosting via Docker (#1503)
This commit is contained in:
19
README.md
19
README.md
@ -48,6 +48,25 @@ git clone https://github.com/excalidraw/excalidraw.git
|
||||
| `npm run test:update` | Update test snapshots |
|
||||
| `npm run test:code` | Test for formatting with Prettier |
|
||||
|
||||
### Docker Installation
|
||||
|
||||
A production-ready version for deploying to e.g. Kubernetes or OpenShift can be built using Docker.
|
||||
|
||||
#### Docker Compose
|
||||
|
||||
```sh
|
||||
docker-compose up --build -d
|
||||
```
|
||||
|
||||
#### Native Docker
|
||||
|
||||
```sh
|
||||
docker build -t excalidraw/excalidraw .
|
||||
docker run --rm -dit --name excalidraw -p 5000:80 excalidraw/excalidraw:latest
|
||||
```
|
||||
|
||||
After building the image and running the container, open <http://localhost:5000> to see the application.
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests are welcome. For major changes, please [open an issue](https://github.com/excalidraw/excalidraw/issues/new) first to discuss what you would like to change.
|
||||
|
Reference in New Issue
Block a user