description: Detailed guide on configuring environment variables for OpnForm
---
OpnForm uses two `.env` files for configuration: one for the Laravel backend located in the `api` directory, and one for the Nuxt front-end located in the `client` directory.
## Backend Environment Variables
The following environment variables are used to [configure the Laravel](https://laravel.com/docs/11.x/configuration) application (OpnForm's API).
### Dedicated guides
There are dedicated configuration pages available for more detailed setup instructions on specific topics:
When running OpnForm with Docker, there are some important considerations for handling environment variables:
### Updating Environment Variables
When changing environment variables in your `.env` files, you need to recreate the containers for the changes to take effect. Simply restarting the containers is not sufficient as Docker only loads environment variables when containers are created.
To apply new environment variable changes:
```bash
# For a specific service (e.g., ui)
docker compose down ui
docker compose up -d ui
# For all services
docker compose down
docker compose up -d
```
<Warning>
A simple `docker compose restart` will not reload environment variables from your `.env` files. You must use `down` and `up` commands to recreate the containers.