Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams with a hand-drawn feel. It's designed to be simple, intuitive, and to allow rapid collaboration.
+
+
# Setting Up Excalidraw with Docker Compose
+
+
## Introduction to Excalidraw
+
+
Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams with a hand-drawn feel. It's designed to be simple, intuitive, and to allow rapid collaboration.
+
## Docker Compose Configuration for Excalidraw
This Docker Compose setup deploys Excalidraw in a Docker container, offering an isolated environment for your sketching and collaboration needs.
@@ 16,19 24,23 @@
restart: on-failure
```
-
Another different setup
+
## Key Components of the Configuration
+
### Service: Excalidraw
+
- **Image**: `excalidraw/excalidraw:latest` is the Docker image used for Excalidraw.
+
- **Ports**:
+
- `8888:80` maps port 8888 on the host to port 80 in the container, where Excalidraw's web interface is accessible.
+
- **Restart Policy**: `on-failure` ensures that the Excalidraw service restarts automatically in case of failure.
-
```yaml
-
services:
-
excalidraw:
-
container_name: Excalidraw
-
healthcheck:
-
test: curl -f http://localhost:80/ || exit 1
-
image: excalidraw/excalidraw:latest
-
ports:
-
- 3765:80
-
restart: on-failure:5
-
stdin_open: true
-
environment:
-
- NODE_ENV=production
-
```
+
## Deploying Excalidraw
+
+
1. Save the Docker Compose configuration in a `docker-compose.yml` file.
+
2. Run `docker compose up -d` to start Excalidraw in detached mode.
+
3. Access Excalidraw by navigating to `http://<host-ip>:8888`.
+
+
## Configuring and Using Excalidraw
+
+
After deployment, Excalidraw is ready to use through its web interface, providing a collaborative platform for sketching and diagramming.