Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Multiple instances

To run a second Publisher on the same host, give it its own install directory, instance name and ports:

  1. Install it without nginx. When it shares a database or RabbitMQ server with the first instance, give it its own user: pass --db-name acme --db-user acme or --broker-vhost acme --broker-user acme.

    sudo ./install.sh --install-dir /srv/relaysms-acme --instance-name acme --skip-nginx
    
  2. Set PORT and GRPC_PORT in /srv/relaysms-acme/.env to ports no other instance uses.

  3. Restart it, then put nginx in front:

    cd /srv/relaysms-acme
    sudo ./manage.sh restart
    sudo ./manage.sh nginx acme.example.com
    

Its units are named after the instance (relaysms-publisher-acme.target, relaysms-publisher-acme-rest.service, …), and the manage.sh in each install directory manages only its own instance. Running install.sh again on that directory reuses the name; a different --instance-name is refused.