Fixing docker issues.

This commit is contained in:
2026-02-04 20:43:20 -05:00
parent 16db4e7d24
commit 48dca539cd
2 changed files with 17 additions and 4 deletions

View File

@@ -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: 5. Under **Environment variables**, add the following:
- `HOST_PATH`: `/opt/bookapp` (The folder you created in Step 2) - `HOST_PATH`: `/opt/bookapp` (The folder you created in Step 2)
- `GEMINI_API_KEY`: `<your-api-key>` - `GEMINI_API_KEY`: `<your-api-key>`
- `ADMIN_USERNAME`: `admin` (Or your preferred username)
- `ADMIN_PASSWORD`: `<secure-password-for-web-ui>` - `ADMIN_PASSWORD`: `<secure-password-for-web-ui>`
- `FLASK_SECRET_KEY`: `<random-string>` - `FLASK_SECRET_KEY`: `<random-string>`
- `FLASK_DEBUG`: `False` (Set to `True` only for troubleshooting) - `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**. 6. Click **Deploy the stack**.
Portainer will pull the code from Git, build the image, and mount the secrets/data from your server folder. Portainer will pull the code from Git, build the image, and mount the secrets/data from your server folder.

View File

@@ -27,7 +27,13 @@ services:
- PYTHONUNBUFFERED=1 - PYTHONUNBUFFERED=1
- GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json - GOOGLE_APPLICATION_CREDENTIALS=/app/credentials.json
- PYTHONPATH=/app - PYTHONPATH=/app
- FLASK_SECRET_KEY=change_this_to_a_random_string - FLASK_SECRET_KEY=${FLASK_SECRET_KEY:-change_this_to_a_random_string}
- ADMIN_USERNAME=admin - ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
- ADMIN_PASSWORD=change_me_in_portainer - ADMIN_PASSWORD=${ADMIN_PASSWORD:-change_me_in_portainer}
- GEMINI_API_KEY=${GEMINI_API_KEY} - FLASK_DEBUG=${FLASK_DEBUG:-False}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- GCP_PROJECT=${GCP_PROJECT:-}
- GCP_LOCATION=${GCP_LOCATION:-us-central1}
- MODEL_LOGIC=${MODEL_LOGIC:-AUTO}
- MODEL_WRITER=${MODEL_WRITER:-AUTO}
- MODEL_ARTIST=${MODEL_ARTIST:-AUTO}