• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Overview
    • Frontend
    • Backend
    • Docker
    • Schema
    • Railway
    • Vercel

Deploying Supamode using Docker

Learn how to deploy your Supamode backend

We provide a Dockerfile to run Supamode in a Docker container. This allows you to deploy Supamode on any platform that supports Docker, such as AWS, Google Cloud, or DigitalOcean.

Building and running the Docker image

From the root of the Supamode repository, you can build the Docker image for the backend and frontend by running:

bash
docker build -t supamode .

NB: you have to source the build-time environment variables for the Vite frontend to the Dockerfile in some way, for example by using the --build-arg flag.

Environment variables

You can set the runtime environment variables for the Docker image by passing them to the docker run command, which are required to run the Supamode backend.

Create a file named .env.production in the root of the Supamode repository and set the environment variables you need at runtime. These are defined at ./backend.mdoc.

Running the Docker image

Once you've built the Docker image, you can run it by running:

bash
docker run supamode --env-file .env.production

Using docker-compose

Alternatively, you can also use the docker-compose.yml file in the root of the Supamode repository to build the Docker images for both the backend and frontend.

bash
docker compose up

Once it's up and running, you can access the Supamode backend at http://localhost:3000 and the frontend at http://localhost:8080.

Services like Railway will automatically use Docker for deployment.

On this page
  1. Building and running the Docker image
    1. Environment variables
    2. Running the Docker image
    3. Using docker-compose