elestio/hoppscotch-backend

Verified Publisher

By Elestio

Updated 15 days ago

Hoppscotch-backend, verified and packaged by Elestio

Image
Security
Integration & delivery
API management
0

10K+

elestio/hoppscotch-backend repository overview

elest.io

Discord Elestio examples Blog

Hoppscotch, verified and packaged by Elestio

Hoppscotch is an open source API development ecosystem.

hoppscotch

deploy

Deploy a fully managed Hoppscotch on elest.io if you want automated backups, reverse proxy with SSL termination, firewall, automated OS & Software updates, and a team of Linux experts and open source enthusiasts to ensure your services are always safe, and functional.

Why use Elestio images?

  • Elestio stays in sync with updates from the original source and quickly releases new versions of this image through our automated processes.
  • Elestio images provide timely access to the most recent bug fixes and features.
  • Our team performs quality control checks to ensure the products we release meet our high standards.

Usage

Git clone

You can deploy it easily with the following command:

git clone https://github.com/elestio-examples/hoppscotch.git

Copy the .env file from tests folder to the project directory

cp ./tests/.env ./.env

Edit the .env file with your own values.

Create data folders with correct permissions

mkdir -p ./pgdata
chown -R 1000:1000 ./pgdata

Run the project with the following command

docker-compose up -d
./scripts/postInstall.sh

You can access the Web UI at: http://your-domain:3130 You can access the Admin UI at: http://your-domain:3100

Docker-compose

Here are some example snippets to help you get started creating a container.

version: "3.3"

services:
    hoppscotch-backend:
        image: elestio/hoppscotch-backend:latest
        env_file:
            - ./.env
        restart: always
        environment:
            - DATABASE_URL=postgresql://postgres:${ADMIN_PASSWORD}@hoppscotch-db:5432/hoppscotch?connect_timeout=300
            - PORT=8080
        depends_on:
            - hoppscotch-db
        ports:
            - "172.17.0.1:3170:8080"

    hoppscotch-app:
        image: elestio/hoppscotch-app:latest
        env_file:
            - ./.env
        depends_on:
            - hoppscotch-backend
        ports:
            - "172.17.0.1:3130:3000"

    hoppscotch-sh-admin:
        image: elestio/hoppscotch-sh-admin:latest
        env_file:
            - ./.env
        depends_on:
            - hoppscotch-backend
        ports:
            - "172.17.0.1:3100:3100"

    hoppscotch-db:
        image: elestio/postgres:15
        ports:
            - "172.17.0.1:5282:5432"
        environment:
        POSTGRES_USER: postgres
        POSTGRES_PASSWORD: ${ADMIN_PASSWORD}
        POSTGRES_DB: hoppscotch
        volumes:
            - ./pgdata:/var/lib/postgresql/data/
Environment variables
VariableValue (example)
varval
ADMIN_EMAIL[email protected]
ADMIN_PASSWORDyour-password
DATABASE_URLpostgresql://postgres:your-password@database:5432/hoppscotch
JWT_SECRETyour-password
TOKEN_SALT_COMPLEXITY10
MAGIC_LINK_TOKEN_VALIDITY3
REFRESH_TOKEN_VALIDITY604800000
ACCESS_TOKEN_VALIDITY86400000
SESSION_SECRETyour-password
REDIRECT_URLhttps://your.domain.com
WHITELISTED_ORIGINShttps://your.domain.com,https://your.domain.com:8443,https://your.domain.com:7443
VITE_ALLOWED_AUTH_PROVIDERS'EMAIL'
MAILER_SMTP_URLsmtp://172.17.0.1:25/?skip_ssl_verify=true&legacy_ssl=false&smtp_ssl_enabled=false&disable_starttls=true
MAILER_ADDRESS_FROM'Hoppscotch [email protected]'
RATE_LIMIT_TTL60
RATE_LIMIT_MAX100
VITE_BASE_URLhttps://your.domain.com
VITE_SHORTCODE_BASE_URLhttps://your.domain.com
VITE_ADMIN_URLhttps://your.domain.com:8443
VITE_BACKEND_GQL_URLhttps://your.domain.com:7443/graphql
VITE_BACKEND_WS_URLwss://your.domain.com:7443/graphql
VITE_BACKEND_API_URLhttps://your.domain.com:7443/v1
VITE_APP_TOS_LINKhttps://docs.hoppscotch.io/support/terms
VITE_APP_PRIVACY_POLICY_LINKhttps://docs.hoppscotch.io/support/privacy

Maintenance

Logging

The Elestio Hoppscotch Docker image sends the container logs to stdout. To view the logs, you can use the following command:

docker-compose logs -f

To stop the stack you can use the following command:

docker-compose down

Backup and Restore with Docker Compose

To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.

Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:

zip -r myarchive.zip .

Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:

unzip myarchive.zip -d /path/to/original/folder

Starting Your Stack Once your backup is complete, you can start your stack again with the following command:

docker-compose up -d

That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.

Tag summary

Content type

Image

Digest

sha256:2a83f5722

Size

205.4 MB

Last updated

15 days ago

docker pull elestio/hoppscotch-backend:2026.6.0

This week's pulls

Pulls:

209

Last week