Public Repository

Last pushed: 7 months ago
Short Description
Library Simplified Circulation Manager base image
Full Description

Supported tags and respective Dockerfile links

Older versions of the Circulation Manager are not currently supported.

This image is updated via pull requests to the NYPL-Simplified/circulation-docker GitHub repo.


  • What is the Circulation Manager?
  • Using This Image
    • Version 2.x
    • Version 1.1.x
  • Environment Variables
  • Notes on Earlier Version
  • Contributing

What is the Circulation Manager?

The circulation manager is the main connection between a library's collection and Library Simplified's various client-side applications. It handles user authentication, combines licensed works with open access content from the OA Content Server, pulls in updated book information from the Metadata Wrangler, and serves up available books in appropriately organized OPDS feeds.

This particular image builds a foundation for other Circulation Manager containers by acquiring the appropriate version of the codebase, creating a virtual environment, and installing required libraries. It could be successfully used as a base for new build repositories or for light development or exploratory work.

Using This Image

Version 2.x

You will need:

  • A PostgreSQL instance url in the format postgres://[username]:[password]@[host]:[port]/[database_name]

With your PostgreSQL url, you are ready to run:

# See the section "Environment Variables" below for more information
# about the values listed here and their alternatives.
$ docker run --name base -it \
    -e SIMPLIFIED_DB_TASK='init' \
    -e SIMPLIFIED_PRODUCTION_DATABASE='postgres://[username]:[password]@[host]:[port]/[database_name]' \

Navigate to http://localhost/admin to in your browser to input or update configuration information. If you have not yet created an admin authorization protocol before, you'll need to do that before you can set other configuration.

Version 1.1.x

You will need:

  • A configuration file created using JSON and the keys and values described at length here. If you're unfamiliar with JSON, we highly recommend taking the time to confirm that your configuration file is valid.

With your configuration file stored on the host, you are ready to run:

# See the section "Environment Variables" below for more information
# about the values listed here.
$ docker run --name base -it \
    -v SIMPLIFIED_CONFIGURATION_FILE='/etc/circulation/config.json'
    -v SIMPLIFIED_DB_TASK='migrate' \

You will need to detach from the generated TTY with Ctrl+P, Ctrl+Q to keep your container running.

For troubleshooting information and installation directions for the entire Circulation Manager tool suite, please review the full deployment instructions.

Environment Variables


Required in v1.1 only. Optional in v2.x. The full path to configuration file in the container. Using the volume -v for v1.1, it should look something like /etc/circulation/YOUR_CONFIGURATION_FILENAME.json. In v2.x you can volume it in wherever you'd like.

Use this documentation to create the JSON file for your particular library's configuration. If you're unfamiliar with JSON, you can use this JSON Formatter & Validator to validate your configuration file.


Required. Performs a task against the database at container runtime. Options are:

  • ignore : Does nothing. This is the default value.
  • init : Initializes the app against a brand new database. If you are running a circulation manager for the first time every, use this value to set up an Elasticsearch alias and account for the database schema for future migrations.
  • migrate : Migrates an existing database against a new release. Use this value when switching from one stable version to another.


Required in v2.x only. The URL of the production PostgreSQL database for the application.


Optional in v2.x only. The URL of a PostgreSQL database for tests. This optional variable allows unit tests to be run in the container.

Notes on Earlier Versions

Prior to version 1.1.23, The environment variable LIBSIMPLE_DB_INIT was used to initialize databases. In these versions, there was no option to migrate databases at all. Migrations against containers created with <=1.1.22 need to be run manually using the following command:

docker exec scripts /bin/bash -c 'source env/bin/activate && core/bin/migrate_database'


We welcome your contributions to new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

(Note: This README is intended to directly reflect the documentation on Docker Hub.)

Docker Pull Command