Fresh Install
- 23 Dec 2024
- 1 Minute to read
-
Print
-
DarkLight
Fresh Install
- Updated on 23 Dec 2024
- 1 Minute to read
-
Print
-
DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
This page walks through how to quickly install Polarity Server version 5 on a new server.
Server Requirements
We recommend the following server specs for a deployment of up to around 50 users:
- 4 Cores
- 32 GB of RAM
- 250 GB storage
- ensure wherever /app is installed has enough storage for containers
Deployment Methods
- Amazon Machine Image (AMI)
- Amazon Linux 2023
- Single server container deployment
- Supported Operating Systems:
- Debian-Based Distros, such as:
- Debian 11 / 12
- Ubuntu 22.04 LTS / 24.04 LTS
- Enterprise Linux-Based Distros, such as:
- RedHat Enterprise Linux 8 / 9
- CentOS Stream
- Rocky Linux 8 / 9
- Oracle Linux 8 / 9
- Amazon Linux
- Supported Operating Systems:
- Single server container deployment - separating out Redis and Postgres to different servers
- Typically, this will be done in AWS using Elasticache and RDS
Installation Steps
Confirm Operating System
cat /etc/os-release
Install OS Dependencies
Amazon Linux 2
Docker / JQ / Postgres / WGET
yum install docker jq postgresql wget -y
Docker Compose
These commands install Docker Compose and add the path to your user's default PATH.
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -O /usr/local/bin/docker-compose
chmod -v +x /usr/local/bin/docker-compose
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
source ~/.bashrc
EL 8 / 9 (eg. CentOS Stream, Rocky Linux, RHEL, etc.)
Docker
dnf config-manager --add-repo=https://download.docker.com/linux/rhel/docker-ce.repo
dnf install docker-ce -y --allowerasing
JQ / Postgres / WGet
dnf install -y jq postgresql wget
Docker Compose
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -O /usr/local/bin/docker-compose
chmod -v +x /usr/local/bin/docker-compose
Debian / Ubuntu
Update Dependencies
sudo apt-get update
Docker / JQ / Postgres / WGET / Python Utils
sudo apt-get install -y docker.io jq postgresql-client wget python3-distutils-extra
Docker Compose
sudo wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -O /usr/local/bin/docker-compose
sudo chmod -v +x /usr/local/bin/docker-compose
Check Docker Components
docker --version
docker-compose --version
Warning
If either of these two programs fail and give a "command not found" error, you may need to add /usr/local/bin to your PATH or the secure_path variable in the /etc/sudoers file.
Download and Execute the Self-Extracting Installation Script
Please reach out to your Polarity Customer Success Representative for the link.
Was this article helpful?