Deploy in Yandex Cloud

The reader portal can be deployed on a private server or in any public cloud. As an example, let’s consider deployment in Yandex Cloud.

  1. Create a Yandex Cloud account or log in to an existing one.

  2. Create a Virtual Machine resource.

  3. Specify a machine name — for example, GramaxTest.

  4. Go to the Container solution tab and click Configure.

  5. Go to the Docker Compose tab.

  6. Follow the link gram.ax/docker-compose.ya-cloud.yaml and copy the file text. Paste it into the Docker Compose field. You can replace some parameters in it:

    • Port number. If you have something deployed locally on port 80, replace 80:80 with <unused port>:80.

    • Administrator login and password. The administrator adds and updates new catalogs on the portal. To prevent unauthorized access to the admin panel, replace these credentials.

  7. Click Apply.

  8. In the Access section, specify any username and generate an SSH key. To do this, open the console on your computer:

    1. Enter the command: ssh-keygen -t ed25519 -f ~/.ssh/yandex_cloud_gramax.

    2. Press Enter three times.

    3. Copy the key using the command:

      • for Mac: cat ~/.ssh/yandex_cloud_gramax.pub | pbcopy;

      • for Windows: cat ~/.ssh/yandex_cloud_gramax.pub | clip.

  9. Return to Yandex Cloud and paste the key into the field. Also, set an administrator login — for example, TestGramax.

  10. Click Create VM.