Skip to content

icon-project/relayer-docker

Repository files navigation

Relayer Docker Infrastructure

This repository provides a Docker-based setup for the relayer infrastructure, including the relayer service and the admin dashboard.

Services

  • Relayer: Handles the core relay functionality.
  • Admin Dashboard: Provides a web interface for managing and monitoring the relayer.

Installation and Usage

Prerequisites

Ensure that the following are installed on your system:

  • Docker: Get Docker
  • Docker Compose: Included with Docker Desktop or install separately for your platform.
  • curl
  • openssl

Quick Start with Install Script

You can quickly set up the relayer infrastructure using the provided install script.

Steps

  1. Run the Install Script

    Execute the following command to download and run the install script:

    curl -L https://raw.githubusercontent.com/icon-project/relayer-docker/main/install.sh -o /tmp/install.sh && bash /tmp/install.sh
  2. Provide Configuration Inputs

    The script will prompt you for the necessary configuration parameters:

    • AWS Credentials:

      • AWS Access Key ID
      • AWS Secret Access Key
      • AWS Default Region (default: us-east-1)
    • Image Versions:

      • Relayer Image Version (default: latest)
      • Dashboard Image Version (default: latest)
    • Restart Policy (default: unless-stopped)

    • Admin Credentials:

    • Let's Encrypt Configuration:

      • Enable Let's Encrypt? (yes or no, default: no)

        If enabled:

        • Use Let's Encrypt Staging
          • Environment? (yes or no, default: no)
        • Let's Encrypt Domain
        • Let's Encrypt Email
    • Configuration File Path:

      • Path to config.yaml for the relayer service.
  3. Wait for Deployment

    The script will:

    • Check for required commands.
    • Download the docker-compose.yaml file.
    • Generate a secure NEXTAUTH_SECRET.
    • Create a .env file with your configuration.
    • Start the Docker services using Docker Compose.
  4. Access the Admin Dashboard

    • If Let's Encrypt is enabled and configured:

      • Access the dashboard at <https://your-domain>
    • If Let's Encrypt is not enabled:

Managing the Services

You can manage the services using Docker Compose commands.

  • Check Service Status:

    docker-compose ps
  • View Logs:

    docker-compose logs -f
  • Stop Services:

    docker-compose down
  • Start Services:

    docker-compose up -d
  • Restart Services:

    docker-compose restart
  • Upgrading Services:

    docker-compose pull
    docker-compose up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published