Fixing docker issues.
This commit is contained in:
@@ -60,9 +60,16 @@ Since secrets and database files shouldn't be in Git, you need to place them on
|
||||
5. Under **Environment variables**, add the following:
|
||||
- `HOST_PATH`: `/opt/bookapp` (The folder you created in Step 2)
|
||||
- `GEMINI_API_KEY`: `<your-api-key>`
|
||||
- `ADMIN_USERNAME`: `admin` (Or your preferred username)
|
||||
- `ADMIN_PASSWORD`: `<secure-password-for-web-ui>`
|
||||
- `FLASK_SECRET_KEY`: `<random-string>`
|
||||
- `FLASK_DEBUG`: `False` (Set to `True` only for troubleshooting)
|
||||
|
||||
**Optional (Advanced / Vertex AI):**
|
||||
- `GCP_PROJECT`: Your Google Cloud Project ID (Required for Imagen 3/Vertex AI).
|
||||
- `GCP_LOCATION`: `us-central1` (Default).
|
||||
- `MODEL_LOGIC`: Override the logic model (e.g., `models/gemini-1.5-pro-latest`).
|
||||
- `MODEL_WRITER`: Override the writer model.
|
||||
6. Click **Deploy the stack**.
|
||||
|
||||
Portainer will pull the code from Git, build the image, and mount the secrets/data from your server folder.
|
||||
|
||||
Reference in New Issue
Block a user