Canadiana IIIF Presentation Layer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mockdb
src
.dockerignore
.gitignore
Dockerfile
README.md
docker-compose.yml
package.json
yarn.lock

README.md

cihm-iiif-presentation

cihm-iiif-presentation is a web service providing the IIIF Presentation API v2.1 for Canadiana content.

Configuration

You will need to create a docker-compose.override.yml file with machine-specific information. Here are the contents of such a file for development:

version: "3"

services:
  cihm-iiif-presentation:
    build: .
    command: yarn run dev
    environment:
      COPRESENTATION_ENDPOINT: <path to copresentation db>
      IIIFI_ENDPOINT: <path to IIIF Image server, with prefix>
      SELF_ENDPOINT: <path to this server, with prefix>
    ports:
      - "3000:3000"
    volumes:
      - ./src:/home/node/iiifp/src

A similar file for a production build, which does not allow for code watching:

version: "3"

services:
  cihm-iiif-presentation:
    build: .
    command: yarn run start
    environment:
      COPRESENTATION_ENDPOINT: <path to copresentation db>
      IIIFI_ENDPOINT: <path to IIIF Image server>
      SELF_ENDPOINT: <path to this server, with prefix>
      NODE_ENV: production
    ports:
      - "3000:3000"

Note that the three endpoint environment variables are required for the server to run.