How to Deploy Simplex Chat Server on Ubuntu VPS

This Post Show how to install Simplex Chat Server on Ubuntu Ubuntu 22.04 x64, I will show you the commands i used to deploy that server, It works 100%.

sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release
sudo mkdir -m 0755 -p /etc/apt/keyrings

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
git clone https://github.com/simplex-chat/simplexmq
cd simplexmq
git checkout stable
DOCKER_BUILDKIT=1 docker build -t smp-server -f ./build.Dockerfile .
mkdir -p ~/simplex/{config,logs}
docker run -d \
    -e addr="------ServerIP------" \
    -p 5223:5223 \
    -v $HOME/simplex/config:/etc/opt/simplex:z \
    -v $HOME/simplex/logs:/var/opt/simplex:z \
    smp-server
docker ps
docker exec -it ------ContainerID------ sh -c "smp-server start"

Leave a Reply

Your email address will not be published. Required fields are marked *