1. Contributing
  2. Local development

Clone the repo

# navigate location to the path you want Infisical to be installed

# clone the repo and cd to Infisical dir
git clone https://github.com/Infisical/infisical
cd infisical

Set up environment variables

Start by creating a .env file at the root of the Infisical directory then copy the contents of the file below into the .env file.

The pre-populated environment variable values above are meant to be used in development only. They should never be used in production.

View all available environment variables and guidance for each.

Starting Infisical for development

We use use Docker to easily spin up all required services to have Infisical up and running for development. If you are unfamiliar with Docker, don’t worry, all you have to do is install Docker for your machine and run the commands below to start up the development server.

Start local server

docker-compose -f docker-compose.dev.yml up --build --force-recreate

Access local server

Once all the services have spun up, browse to http://localhost:8080. To sign in, you may use the default credentials listed below.

Email: [email protected] Password: testInfisical1

Shutdown local server

# To stop environment use Control+C (on Mac) CTRL+C (on Win) or
docker-compose -f docker-compose.dev.yml down