-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up your PostgreSQL server
With the release of version 4.0 we no longer ship the database in a container. Instead customers should use their own instance of Postgres to host the database.
Recommended requirements for postgres server without Macromolecule Hub:
- Postgres version 14 or newer
- 100GB free hd space
Recommended requirements for postgres server including Macromolecule Hub:
- Postgres version 14 or newer
- 200GB free hd space
For supported operating systems the native version of postgres should be sufficient. To install on RHEL / Rocky Linux:
sudo yum install postgresql-serverTo install on Ubuntu:
sudo apt-get install postgresqlN.B. The postgresql server must also be configured to allow network connections from the WebCSD server.
Contact [email protected] for assistance in getting the postgres database / databases you need. They will be able to provide you with a link to download the databases to your infrastructure.
Restore the databases you have downloaded into your new environment. If you are replacing an existing database first delete it:
psql -c "DROP DATABASE \"csd-database\""
Then install the new database:
psql -c "CREATE DATABASE \"csd-database\""
pg_restore --no-owner -d csd-database < downloaded_database_name.dump
If you are unable to perform a database backup as described above, please contact [email protected] for assistance.