Skip to content

Commit

Permalink
chore: (real one) - normalise override.env usage
Browse files Browse the repository at this point in the history
  • Loading branch information
av committed Nov 2, 2024
1 parent af47c8e commit 91632e8
Show file tree
Hide file tree
Showing 57 changed files with 161 additions and 45 deletions.
3 changes: 3 additions & 0 deletions aichat/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Can contain additional environment variables
# that'll only be visible for aichat service
# You can also use "harbor env" command to set these variables
2 changes: 1 addition & 1 deletion aider/override.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
#
# Example override:
# AIDER_DARK_MODE=true
AIDER_CHECK_UPDATE=false
AIDER_CHECK_UPDATE=false
3 changes: 3 additions & 0 deletions airllm/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Can contain additional environment variables
# that'll only be visible for airllm service
# You can also use "harbor env" command to set these variables
5 changes: 3 additions & 2 deletions aphrodite/override.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# You can specify additional override environment variables here
# This file can be used for overrides specific to the "aphrodite" service.
# You can also use "harbor env" command to set these variables
# APHRODITE_LOG_LEVEL=debug
# APHRODITE_TRACE_FUNCTION=1
# CUDA_LAUNCH_BLOCKING=1
# NCCL_DEBUG=TRACE=1
# NCCL_DEBUG=TRACE=1
2 changes: 1 addition & 1 deletion autogpt/override.env
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@
## AP_SERVER_CORS_ALLOWED_ORIGINS - Comma separated list of allowed origins for CORS. (Default: http://localhost:{AP_SERVER_PORT})
# AP_SERVER_PORT=8000
# AP_SERVER_DB_URL=sqlite:///data/ap_server.db
# AP_SERVER_CORS_ALLOWED_ORIGINS=
# AP_SERVER_CORS_ALLOWED_ORIGINS=
3 changes: 2 additions & 1 deletion bench/override.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# This file can be used for overrides specific to the "bench" service.
# This file can be used for overrides specific to the "bench" service.
# You can also use "harbor env" command to set these variables
2 changes: 2 additions & 0 deletions bionicgpt/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file can be used for overrides specific to the "bionicgpt" service.
# You can also use "harbor env" command to set these variables
1 change: 1 addition & 0 deletions bolt/override.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Can contain additional environment variables
# specific for the bolt service. See for example:
# https://github.com/coleam00/bolt.new-any-llm/blob/main/.env.example
# You can also use "harbor env" command to set these variables
3 changes: 2 additions & 1 deletion boost/override.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file can be used for additional
# environment variable overrides that will
# only be visible to the boost service.
LOG_LEVEL=DEBUG
# You can also use the "harbor env" command to set these variables.
LOG_LEVEL=DEBUG
4 changes: 4 additions & 0 deletions chatui/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This file can be used for additional
# environment variable overrides that will
# only be visible to the chatui service.
# You can also use the "harbor env" command to set these variables.
3 changes: 2 additions & 1 deletion cmdh/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# This file can contain additional
# env vars for CMDH
# env vars for cmdh service
# You can also use the "harbor env" command to set these variables.
3 changes: 2 additions & 1 deletion comfyui/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# This file can be used for overriding environment variables
# specifically for the ComfyUI service
# specifically for the ComfyUI service
# You can also use the "harbor env" command to set these variables.
4 changes: 3 additions & 1 deletion compose.airllm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
context: ./airllm
dockerfile: ./Dockerfile
container_name: ${HARBOR_CONTAINER_PREFIX}.airllm
env_file: ./.env
env_file:
- ./.env
- ./airllm/override.env
environment:
- HF_TOKEN=${HARBOR_HF_TOKEN}
- MODEL=${HARBOR_AIRLLM_MODEL}
Expand Down
3 changes: 3 additions & 0 deletions compose.bionicgpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ services:
volumes:
- ./bionicgpt/start_envoy.sh:/start_envoy.sh
command: /start_envoy.sh
env_file:
- ./.env
- ./bionicgpt/override.env

bionicgpt-app:
image: ghcr.io/bionic-gpt/bionicgpt:1.7.41
Expand Down
4 changes: 3 additions & 1 deletion compose.hf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
context: ./hf
dockerfile: Dockerfile
container_name: ${HARBOR_CONTAINER_PREFIX}.hf
env_file: ./.env
env_file:
- ./.env
- ./hf/override.env
volumes:
- ${HARBOR_HF_CACHE}:/root/.cache/huggingface
environment:
Expand Down
4 changes: 3 additions & 1 deletion compose.hfdownloader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ services:
context: ./hfdownloader
dockerfile: Dockerfile
container_name: ${HARBOR_CONTAINER_PREFIX}.hfdownloader
env_file: ./.env
env_file:
- ./.env
- ./hfdownloader/override.env
volumes:
- ${HARBOR_HF_CACHE}:/app/hf
- ${HARBOR_LLAMACPP_CACHE}:/app/llama.cpp
4 changes: 3 additions & 1 deletion compose.langfuse.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
langfuse:
image: langfuse/langfuse
env_file: ./.env
env_file:
- ./.env
- ./langfuse/override.env
container_name: ${HARBOR_CONTAINER_PREFIX}.langfuse
ports:
- ${HARBOR_LANGFUSE_HOST_PORT}:3000
Expand Down
4 changes: 3 additions & 1 deletion compose.litellm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
litellm:
image: ghcr.io/berriai/litellm:main-stable
env_file: ./.env
env_file:
- ./.env
- ./litellm/override.env
container_name: ${HARBOR_CONTAINER_PREFIX}.litellm
volumes:
# Additional config file volumes will be appended when
Expand Down
4 changes: 3 additions & 1 deletion compose.ollama.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
ollama:
container_name: ${HARBOR_CONTAINER_PREFIX}.ollama
env_file: ./.env
env_file:
- ./.env
- ./ollama/override.env
volumes:
- ${HARBOR_OLLAMA_CACHE}:/root/.ollama
- ${HARBOR_HF_CACHE}:/root/.cache/huggingface
Expand Down
4 changes: 3 additions & 1 deletion compose.opint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
context: ./openinterpreter
dockerfile: Dockerfile
container_name: ${HARBOR_CONTAINER_PREFIX}.opint
env_file: ./.env
env_file:
- ./.env
- ./openinterpreter/override.env
volumes:
- ./openinterpreter/configs:/app/configs
- ${HARBOR_OPINT_CONFIG_PATH}:/root/.config/open-interpreter
Expand Down
4 changes: 3 additions & 1 deletion compose.parler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ services:
parler:
container_name: ${HARBOR_CONTAINER_PREFIX}.parler
image: fedirz/parler-tts-server
env_file: ./.env
env_file:
- ./.env
- ./parler/override.env
ports:
- ${HARBOR_PARLER_HOST_PORT}:8000
volumes:
Expand Down
4 changes: 3 additions & 1 deletion compose.parllama.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
parllama:
container_name: ${HARBOR_CONTAINER_PREFIX}.parllama
env_file: ./.env
env_file:
- ./.env
- ./parllama/override.env
build:
context: ./parllama
dockerfile: Dockerfile
Expand Down
12 changes: 9 additions & 3 deletions compose.plandex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ services:
context: ./plandex
dockerfile: Dockerfile
container_name: ${HARBOR_CONTAINER_PREFIX}.plandex
env_file: ./.env
env_file:
- ./.env
- ./plandex/override.env
# When running "harbor plandex <cmd>", Harbor will also
# dynamically mount closest .git directory to serve
# as a volume for plandex to work in
Expand Down Expand Up @@ -33,7 +35,9 @@ services:
- /etc/localtime:/etc/localtime:ro
ports:
- ${HARBOR_PLANDEX_HOST_PORT}:8080
env_file: ./.env
env_file:
- ./.env
- ./plandex/override.env
environment:
GOENV: development
DATABASE_URL: postgresql://postgres:postgres@plandex-db:5432/postgres?sslmode=disable
Expand All @@ -53,7 +57,9 @@ services:
plandex-db:
image: postgres
container_name: ${HARBOR_CONTAINER_PREFIX}.plandex-db
env_file: ./.env
env_file:
- ./.env
- ./plandex/override.env
ports:
- ${HARBOR_PLANDEX_DB_HOST_PORT}:5432
volumes:
Expand Down
4 changes: 3 additions & 1 deletion compose.searxng.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
services:
searxng:
container_name: ${HARBOR_CONTAINER_PREFIX}.searxng
env_file: ./.env
env_file:
- ./.env
- ./searxng/override.env
image: searxng/searxng
environment:
INSTANCE_NAME: searxng
Expand Down
4 changes: 3 additions & 1 deletion compose.tabbyapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ services:
tabbyapi:
image: nschle/tabbyapi:12.4.1-runtime-ubuntu22.04-runpod
container_name: ${HARBOR_CONTAINER_PREFIX}.tabbyapi
env_file: ./.env
env_file:
- ./.env
- ./tabbyapi/override.env
ports:
- ${HARBOR_TABBYAPI_HOST_PORT}:5000
environment:
Expand Down
4 changes: 3 additions & 1 deletion compose.textgrad.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
build:
context: ./textgrad
dockerfile: Dockerfile
env_file: ./.env
env_file:
- ./.env
- ./textgrad/override.env
ports:
- ${HARBOR_TEXTGRAD_HOST_PORT}:8888
command: [
Expand Down
4 changes: 3 additions & 1 deletion compose.tts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ services:
tts:
image: ghcr.io/matatonic/openedai-speech
container_name: ${HARBOR_CONTAINER_PREFIX}.tts
env_file: ./.env
env_file:
- ./.env
- ./tts/override.env
ports:
- ${HARBOR_TTS_HOST_PORT}:8000
volumes:
Expand Down
1 change: 1 addition & 0 deletions compose.webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ services:
image: ghcr.io/open-webui/open-webui:${HARBOR_WEBUI_VERSION}
env_file:
- ./.env
- ./open-webui/override.env
container_name: ${HARBOR_CONTAINER_PREFIX}.webui
volumes:
- ./open-webui:/app/backend/data
Expand Down
3 changes: 2 additions & 1 deletion fabric/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# This file can be used for additional environment variables
# specifically for the fabric service.
# specifically for the fabric service.
# You can also use the "harbor env" command to set these variables.
5 changes: 5 additions & 0 deletions harbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ show_help() {
echo " config reset - Reset Harbor configuration to default .env"
echo " config update - Merge upstream config changes from default .env"
echo
echo " env <service> [key] [value] - Manage override.env variables for a service"
echo " env <service> - List all variables for a service"
echo " env <service> <key> - Get a specific variable for a service"
echo " env <service> <key> <value> - Set a specific variable for a service"
echo
echo " profile|profiles|p [ls|rm|add] - Manage Harbor profiles"
echo " profile ls|list - List all profiles"
echo " profile rm|remove <name> - Remove a profile"
Expand Down
3 changes: 3 additions & 0 deletions hf/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the HF CLI.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions hfdownloader/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the HuggingFaceDownloader CLI.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions jupyter/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the jupyter service.
# You can also use the "harbor env" command to set these variables.
5 changes: 3 additions & 2 deletions ktransformers/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# You can provide additional
# environment variables here
# This file can be used for additional environment variables
# specifically for the "ktransformers" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions langfuse/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "langfuse" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 2 additions & 1 deletion librechat/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# This file can be used for additional environment variables
# specific for the LibreChat service
# specifically for the "librechat" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions litellm/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "litellm" service.
# You can also use the "harbor env" command to set these variables.
5 changes: 3 additions & 2 deletions litlytics/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# This file can be used for additional
# environment variables for the litlytics service.
# This file can be used for additional environment variables
# specifically for the "litlytics" service.
# You can also use the "harbor env" command to set these variables.
4 changes: 3 additions & 1 deletion lmeval/override.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Additional environment variables for the "lm_eval" service
# This file can be used for additional environment variables
# specifically for the "lmeval" service.
# You can also use the "harbor env" command to set these variables.
1 change: 1 addition & 0 deletions n8n/override.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This file can be used for additional environment variables
# specific to the n8n service
# You can also use the "harbor env" command to set these variables.
N8N_DIAGNOSTICS_ENABLED=false
N8N_PERSONALIZATION_ENABLED=false

Expand Down
5 changes: 3 additions & 2 deletions nexa/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# This file can contain additional environment
# variables that'll only be visible to nexa service.
# This file can be used for additional environment variables
# specifically for the "nexa" service.
# You can also use the "harbor env" command to set these variables.
4 changes: 3 additions & 1 deletion ol1/override.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Can contain additional override variables for ol1 service
# This file can be used for additional environment variables
# specifically for the "ol1" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions ollama/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "ollama" service.
# You can also use the "harbor env" command to set these variables.
6 changes: 3 additions & 3 deletions omnichain/override.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# You can add additional/override omnichain
# environment variables here.
# DEBUG=*
# This file can be used for additional environment variables
# specifically for the "omnichain" service.
# You can also use the "harbor env" command to set these variables.
5 changes: 3 additions & 2 deletions openhands/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# You can add environment variables specific
# to the openhands service here
# This file can be used for additional environment variables
# specifically for the "openhands" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions openinterpreter/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "opint" service and CLI.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions parler/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "parler" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions parllama/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "parllama" service.
# You can also use the "harbor env" command to set these variables.
5 changes: 3 additions & 2 deletions perplexica/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Can contain overrides for Perplexica's environment variables
# SEARXNG_API_ENDPOINT=http://localhost:5000
# This file can be used for additional environment variables
# specifically for the "perplexica" service.
# You can also use the "harbor env" command to set these variables.
3 changes: 3 additions & 0 deletions plandex/override.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file can be used for additional environment variables
# specifically for the "plandex" service and CLI.
# You can also use the "harbor env" command to set these variables.
5 changes: 3 additions & 2 deletions repopack/override.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Can contain additional env variables
# that'll only be visible for the repopack service
# This file can be used for additional environment variables
# specifically for the "repopack" CLI.
# You can also use the "harbor env" command to set these variables.
Loading

0 comments on commit 91632e8

Please sign in to comment.