BaseX Docker with BasexWeb file mount
✓ Published0🌍 Public
CCliffordAnderson
Last edited Oct 20, 2016
Created on Oct 20, 2016
This example demonstrates how to launch a BaseX HTTP server within a Docker container, mounting local directories for both database storage and web application files. The `docker run` command configures the container with the `basex/basexhttp:latest` image, exposing ports 1984 and 8984 for client and HTTP access. It uses volume flags (`--volume`) to bind the host’s `~/BaseXData` and `~/BaseXWeb` directories to `/srv/BaseXData` and `/srv/BaseXWeb` inside the container, enabling persistent data storage and direct serving of web content. The setup runs interactively with the `-ti` flag, linking host filesystem paths to the server’s runtime environment.
AI-generated description