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.
Docker Compose File (docker-compose.yml)
version: "3.8"
services:
excalidraw:
container_name: excalidraw
image: excalidraw/excalidraw:latest
ports:
- "80:80"
restart: on-failure
Key Components of the Configuration
Service: Excalidraw
Image:
excalidraw/excalidraw:latest
is the Docker image used for Excalidraw.
Ports:
80:80
maps port 80 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.
Deploying Excalidraw
-
Save the Docker Compose configuration in a
docker-compose.yml
file. -
Run
docker compose up -d
to start Excalidraw in detached mode. -
Access Excalidraw by navigating to
http://
.:80
Configuring and Using Excalidraw
After deployment, Excalidraw is ready to use through its web interface, providing a collaborative platform for sketching and diagramming.