Deploy to Fly.io

Star (0)

This article covers how to deploy a Monika instance to Fly.io.

  1. Go to the Monika Github repository and download two files: Dockerfile.flyio and fly.toml.example

  2. Rename the fly.toml.example to fly.toml`.

  3. Edit the contents of the fly.toml:

    app = "monika" # Change the app name to the desired name
    kill_signal = "SIGINT"
    kill_timeout = 5
    [build]
    dockerfile = "Dockerfile.flyio"
    [build.args]
    PARAMS = "-v" # Change the parameters according to your needs
    [env]
    PARAMS = "-v" # Match the content of this PARAMS variable to the one in `build.args` block
    [experimental]
    auto_rollback = true

    Refer to the Fly.io App Configuration Docs to customize the example TOML even further.

  4. Install Fly.io CLI tools (flyctl) in your computer

  5. a. Proceed to authenticate to Fly.io by running flyctl auth login in your terminal.

    b. If you haven't signed up to Fly.io yet, you can sign up by running flyctl auth signup in your terminal.

  6. Create a new Fly.io app by running flyctl apps create and enter the app name according to your fly.toml you have created before.

  7. Deploy Monika to your Fly.io by running flyctl deploy

  8. Wait until the deployment is finished, and check Monika logs from the Fly.io dashboard to confirm that your Monika instance is running.

Was this page helpful?

PT Artha Rajamas Mandiri (Hyperjump) is an open-source-first company providing engineering excellence service. We aim to build and commercialize open-source tools to help companies streamline, simplify, and secure the most important aspects of its modern DevOps practices.

Copyright © 2024 Hyperjump Tech. All Rights Reserved.