Example files for a complete default LDF deployment, with an LDF server, NGINX cache and LDF web client using Docker Compose.
To start the LDF server, cache and web client, simply run the following command:
docker-compose upAdding the -d parameter will run it as a daemon.
The server will now be running on the default HTTP port, and the web client will be running on port 8080.
The required configuration for deploying an LDF server is minimal.
config-server.json specifies the server configuration.
config-client.json specifies the web client configuration.
The queries folder should contain the SPARQL queries that should be available by default in the web client.
nginx.conf and nginx-default are the NGINX config files.
By default, this cache is configured to have 4 worker processes, which cache LDF server resources for 7 days.
Logging is enabled by default, resulting log files will appear in the automatically mounted log/ folder.
No changes are required in the docker-compose.yml file, all essential parameters can be changed in the .env file.
DATA_DIR specifies the data directory in which your datasets are available.
The files in this directory will be mounted to the /data directory inside the Docker instance.
The default config-server.json expects a dbpedia2014.hdt dataset file to be present in this directory.
LDF_WORKERS specifies the number of workers the LDF server should have, this will typically be the same as the number of cores of your machine.
The worker_processes value in nginx.conf should in most cases have the same value.