Back to Home

Self-Hosting Guide

Form.aro is designed to be easy to self-host. You can run the entire stack (App + Database) on your own infrastructure using Docker.

Prerequisites

  • Docker and Docker Compose installed on your machine.
  • Git (to clone the repository).

1. Clone the Repository

git clone https://github.com/yourusername/Form.aro.git\ncd Form.aro

2. Configure Environment

Create a .env.local file in the root directory. You can copy the example file:

cp .env.example .env.local

Update the variables in .env.local. For Docker, the database URL should point to the mongo service:

MONGODB_URI=mongodb://mongo:27017/Form.aro\nNEXTAUTH_SECRET=your-secret-key\nNEXTAUTH_URL=http://localhost:3000

3. Run with Docker Compose

Build and start the containers:

docker-compose up -d

The application will be available at http://localhost:3000.

Updating

To update to the latest version:

git pull\ndocker-compose up -d --build