Skip to main content

Excalidraw

Excalidraw Compose and Documentation

Excalidraw is your go-to tool for creating and documenting your diagrams and visualizations effortlessly. This Docker Compose setup ensures a reliable and straightforward experience with Excalidraw. Whether you're sketching diagrams or documenting concepts, Excalidraw and Docker have you covered.

Docker Compose File

version: "3.8"

services:
  excalidraw:
    container_name: excalidraw
    image: excalidraw/excalidraw:latest
    ports:
      - "3030:80"
    restart: on-failure

Container Name: Set the container's name to "excalidraw" for easy reference and management.

Image: Specifies the Docker image "excalidraw/excalidraw:latest" to be used for Excalidraw.

Ports: Maps port 3030 on the host to port 80 in the container, allowing you to access Excalidraw through your web browser.

Restart: Configured to restart the container on failure, ensuring continuous availability.

Deploying the Compose

To start your Excalidraw instance with Docker Compose, follow these steps:

  1. Ensure you have Docker and Docker Compose installed on your system.

  2. Create a docker-compose.yml file with the provided content.

  3. Navigate to the directory containing your docker-compose.yml file.

  4. Execute the following command:

    sh
    docker-compose up -d

    This will initiate Excalidraw as a detached background service, allowing you to use your terminal for other tasks while keeping Excalidraw running smoothly.

Enjoy creating and documenting with Excalidraw and Docker!