Supported tags and respective
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
- Additional Configuration
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 containers to deploy the Circulation Manager API using Nginx and uWSGI.
Using This Image
You will need:
- A PostgreSQL instance url in the format
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 deploy \ -d -p 80:80 \ -e SIMPLIFIED_DB_TASK='migrate' \ -e SIMPLIFIED_PRODUCTION_DATABASE='postgres://[username]:[password]@[host]:[port]/[database_name]' \ nypl/circ-deploy:2.0
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.
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.
- An exposed port 80 on your host machine.
- A hosted elasticsearch v1 instance, included in your configuration file. You may choose to use Docker to host this instance. If so, further instructions can be found here.
With your the exposed port and the complete 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 and their alternatives. $ docker run --name deploy \ -d -p 80:80 \ -v FULL_PATH_TO_YOUR_CONFIGURATION_FILE_DIRECTORY:/etc/circulation \ -e SIMPLIFIED_CONFIGURATION_FILE='/etc/circulation/config.json' \ -e SIMPLIFIED_DB_TASK='init' \ nypl/circ-deploy:1.1
For troubleshooting information and installation directions for the entire Circulation Manager tool suite, please review the full deployment instructions.
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'
If you would like to use different tools to handle deployment for the LS Circulation Manager, you are more than welcome to do so! We would love to support more deployment configurations; feel free to contribute any changes you may make to the official Docker build repository!
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.)