Skip to main content
Docker Compose lets you start the full Instance platform without installing PostgreSQL, Redis, or Node dependencies on your host machine.

Prerequisites

  • Docker Desktop (or Docker Engine + Docker Compose v2)
  • Git

Step-by-Step Launch

  1. Clone the repository and create .env:
  1. Configure required environment variables in .env:
  • Set NEXTAUTH_SECRET to a random 32-byte hex string (openssl rand -hex 32).
  • Set INSTAGRAM_APP_ID, INSTAGRAM_APP_SECRET, INSTAGRAM_REDIRECT_URI, and META_WEBHOOK_VERIFY_TOKEN for Instagram connectivity.
  • Optionally customize POSTGRES_USER, POSTGRES_PASSWORD, and POSTGRES_DB (defaults are pre-configured in docker-compose.yml).
  1. Start the container stack:
  1. Verify all containers are healthy:

Container Stack Overview


Data Volumes and Persistence

PostgreSQL and Redis store data in named Docker volumes (postgres_data and redis_data).
  • To stop containers while keeping your database intact:
  • Warning: Never run docker compose down -v in production, as -v deletes your persistent database and Redis volumes.

Helpful Docker Commands


Next Step

Once http://localhost:3000 is running, follow Instagram Setup to connect your Instagram Business or Creator account.