Originally created by @Joakim-T on GitHub (May 1, 2024).
# Bug Report
## Description
When restarting the Open WebUI docker container API key settings are lost
**Bug Summary:**
When restarting the Open WebUI docker container API key settings are lost
**Steps to Reproduce:**
Enter a API key, save and restart Docker
**Expected Behavior:**
API key persists after restart
**Actual Behavior:**
API key is lost after restart
## Environment
- **Open WebUI Version:** 0.1.1222
- **Operating System:** Docker running in Portainer
## Reproduction Details
**Confirmation:**
- [X] I have read and followed all the instructions provided in the README.md.
- [X] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [X] I have included the Docker container logs.
## Logs and Screenshots
**Docker Container Logs:**
[owebui.log](https://github.com/open-webui/open-webui/files/15176668/owebui.log)
**Screenshots (if applicable):**
Before restart

After restart

## Installation Method
Docker
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Joakim-T on GitHub (May 1, 2024).
Bug Report
Description
When restarting the Open WebUI docker container API key settings are lost
Bug Summary:
When restarting the Open WebUI docker container API key settings are lost
Steps to Reproduce:
Enter a API key, save and restart Docker
Expected Behavior:
API key persists after restart
Actual Behavior:
API key is lost after restart
Environment
Open WebUI Version: 0.1.1222
Operating System: Docker running in Portainer
Reproduction Details
Confirmation:
Logs and Screenshots
Docker Container Logs:
owebui.log
Screenshots (if applicable):

Before restart
After restart

Installation Method
Docker
@Yanyutin753 commented on GitHub (May 1, 2024):
follow the documentation to add environment variables