FHIR is an emerging HL7 standard.
Fast Health Interoperability Resources
There is a very large, dynamic, and welcoming community of developers on FHIR Chat (Zulip) chat.fhir.org community expectations. This is the best place to go for general questions about FHIR, terminology services and FHIR, as well as Ontoserver itself.
For technical support issues directly related to Ontoserver, please email ontoserver-support@csiro.au.
There are two main parts to removing Ontoserver completely from your system: removing the docker images (which contain ontoserver and postgres), and removing the docker volumes (which contain the data).
You can see the docker images by running
docker images
docker rmi -f aehrc/ontoserver:4.1
docker rmi -f $(docker images | grep 'aehrc/ontoserver' | awk {'print $3'})
docker rmi -f postgres
You can see the docker volumes by running
docker volume ls
docker volume rm $(docker volume ls | grep -E '_onto|_pgdata' | awk {'print $2'})
You may also wish to remove your docker-compose.yml file, or even to uninstall Docker itself (instructions can be found on the relevant Docker installation pages)
Note: these commands assume a default configuration. If you have made changes, e.g. to the volumes that are used, then the commands for uninstalling images and volumes may differ.
Ontoserver's data consists of two artifacts that need to be backed up, both mounted as docker volumes.
Note: These volume are mounted by the containers, but do not live inside the containers,
so it is not sufficient to snapshot the ontoserver and postgres containers.
Once you have your docker client pointed at the docker-machine that is running the Ontoserver instance you wish to back up, and assuming your docker-compose.yml file is located in a myOntoserver directory):
docker run --rm --volumes-from ontoserver -v /home/ubuntu/backup:/backup ubuntu tar cvf /backup/backup-ontoserver.tar /var/onto
docker run --rm --volumes-from myOntoserver_db_1 -v /home/ubuntu/backup:/backup ubuntu tar cvf /backup/backup-pgdata.tar /var/lib/postgresql/data
These commands create two tar files in the /home/ubuntu/backup directory of the machine (real or virtual) where Ontoserver is running. You may wish to retrieve them to another machine using a program such as sftp.
Once you have the backup tar files (see backup), and with your docker client pointed at the docker-machine where you want to restore Ontoserver:
docker-compose up –d
docker-compose stop
docker run --rm --volumes-from ontoserver -v /home/ubuntu/backup:/backup ubuntu bash -c "tar xvf /backup/backup-ontoserver.tar"
docker run --rm --volumes-from myOntoserver_db_1 -v /home/ubuntu/backup:/backup ubuntu bash -c "tar xvf /backup/backup-pgdata.tar"
docker-compose up –d
If your docker-compose.yml file refers to a major-minor version (e.g. ontoserver:ctsa-4.1), and you want to upgrade to the latest patch version (e.g. from 4.1.6 to 4.1.7), then all you have to do is pull the latest 4.1 release. To do this, simply run
docker pull aehrc/ontoserver:ctsa-4.1
If you want to change to a specific version, then you can also change the specific version in your docker-compose.yml file. The list of available versions can be found here.
Once you have done either (or both) of these, then you can apply the change by re-upping your docker-compose:
docker-compose up -d
This should recreate the ontoserver container with the new version.