Installing with Docker Compose
Requirements
- git
- Docker with the Compose plugin (
docker compose) - Enough memory and disk for the triple store and the search index: see System 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
adminwith the passwordpassword; - it loads a small starter ontology (
STARTER_ONTOLOGYin.env,STYby default) from the copy indata/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:
- web interface: http://localhost
- API: http://localhost:9393
Everyday commands
| Command | Effect |
|---|---|
./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\|ui | Show 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 help | List the commands |
Next steps
Set the portal name, URLs and image versions in Configuration, then TLS and HTTPS for a public portal.