Skip to main content Link Search Menu Expand Document (external link)

Installing with Docker Compose

Requirements

The API, web interface and ncbo_cron images are published for amd64 and arm64. The triple store (Virtuoso) and annotator (mgrep) images are amd64 only; on an arm64 machine, such as a Mac with Apple Silicon, Docker runs them under emulation.

First start

git clone https://github.com/agroportal/ontoportal_docker.git
cd ontoportal_docker
./ontoportal start

On the first run, the script copies .env.sample to .env, pulls the images, builds the FAIRness service, starts all the containers and provisions the portal:

  • it creates an administrator account admin with the password password;
  • it loads a small starter ontology (STARTER_ONTOLOGY in .env, STY by default) from the copy in data/ontologies/, without contacting any other portal.

Change the administrator password as soon as the portal is reachable by others.

Use ./ontoportal start --no-provision to start an empty portal instead.

The portal is then available at:

Everyday commands

CommandEffect
./ontoportal start [api\|ui]Start the whole portal, or only the API or the web interface
./ontoportal stop [api\|ui]Stop the containers
./ontoportal logs api\|uiShow the logs of the API or the web interface
./ontoportal update [api\|ui]Pull the latest images (see Upgrading)
./ontoportal clean [-f]Remove all containers and data volumes (local testing only)
./ontoportal helpList the commands

Next steps

Set the portal name, URLs and image versions in Configuration, then TLS and HTTPS for a public portal.