inline compose environment for container station

This commit is contained in:
2026-05-09 19:08:21 +08:00
parent 55d1e6b0b4
commit 84ebdbd793
4 changed files with 26 additions and 25 deletions

View File

@@ -8,17 +8,11 @@ services:
# If your project is in a different folder, update `build.context` below
# or run compose from the project folder and change it to `.`.
#
# First-time setup on NAS:
# First-time setup on NAS source folder:
# cd /share/Container/gemini-drawpicture
# cp .env.example .env.local
# vi .env.local
#
# Required values in .env.local:
# GEMINI_API_KEY="your_gemini_api_key"
# API_AUTH_TOKEN="a_long_random_api_access_token"
# API_AUTH_DISABLED="false"
# APP_PASSWORD="your_web_login_password"
# APP_URL="http://192.168.31.5:4001"
# Container Station validates compose files from /tmp, so do not use
# relative environment-file paths here. Fill values directly below.
#
# Build and start:
# cd /share/Container/gemini-drawpicture
@@ -40,12 +34,14 @@ services:
container_name: gemini-drawpicture
init: true
restart: unless-stopped
env_file:
- .env.local
environment:
# Keep API auth enabled on NAS. Use API_AUTH_TOKEN from .env.local.
# Required business settings.
GEMINI_API_KEY: "CHANGE_ME_TO_YOUR_GEMINI_API_KEY"
API_AUTH_TOKEN: "CHANGE_ME_TO_A_LONG_RANDOM_TOKEN"
API_AUTH_DISABLED: "false"
API_PORT: "3002"
APP_PASSWORD: "CHANGE_ME_TO_YOUR_WEB_PASSWORD"
APP_URL: "http://192.168.31.5:4001"
# Optional proxy settings. Keep them if NAS needs OpenClash/proxy
# to reach Google/Gemini; otherwise comment these lines out.