mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Sisco/docker allow relative paths for invokeai data (#5344)
* Update docker-compose.yml to bind local data path * Update LOCAL_DATA_PATH in .env.sample * Add fallback to INVOKEAI_ROOT envar if LOCAL_DATA_PATH not present. * rename LOCAL_DATA_PATH to INVOKAI_LOCAL_ROOT * Whoops, didnt mean to include this * Update docker/docker-compose.yml Co-authored-by: Eugene Brodsky <ebr@users.noreply.github.com> * [chore] rename envar * Apply suggestions from code review --------- Co-authored-by: Eugene Brodsky <ebr@users.noreply.github.com>
This commit is contained in:
parent
4cffe282bd
commit
5413bf07e2
@ -2,10 +2,13 @@
|
|||||||
## Any environment variables supported by InvokeAI can be specified here,
|
## Any environment variables supported by InvokeAI can be specified here,
|
||||||
## in addition to the examples below.
|
## in addition to the examples below.
|
||||||
|
|
||||||
# INVOKEAI_ROOT is the path to a path on the local filesystem where InvokeAI will store data.
|
# HOST_INVOKEAI_ROOT is the path on the docker host's filesystem where InvokeAI will store data.
|
||||||
# Outputs will also be stored here by default.
|
# Outputs will also be stored here by default.
|
||||||
# This **must** be an absolute path.
|
# If relative, it will be relative to the docker directory in which the docker-compose.yml file is located
|
||||||
INVOKEAI_ROOT=
|
#HOST_INVOKEAI_ROOT=../../invokeai-data
|
||||||
|
|
||||||
|
# INVOKEAI_ROOT is the path to the root of the InvokeAI repository within the container.
|
||||||
|
# INVOKEAI_ROOT=~/invokeai
|
||||||
|
|
||||||
# Get this value from your HuggingFace account settings page.
|
# Get this value from your HuggingFace account settings page.
|
||||||
# HUGGING_FACE_HUB_TOKEN=
|
# HUGGING_FACE_HUB_TOKEN=
|
||||||
|
@ -21,7 +21,9 @@ x-invokeai: &invokeai
|
|||||||
ports:
|
ports:
|
||||||
- "${INVOKEAI_PORT:-9090}:9090"
|
- "${INVOKEAI_PORT:-9090}:9090"
|
||||||
volumes:
|
volumes:
|
||||||
- ${INVOKEAI_ROOT:-~/invokeai}:${INVOKEAI_ROOT:-/invokeai}
|
- type: bind
|
||||||
|
source: ${HOST_INVOKEAI_ROOT:-${INVOKEAI_ROOT:-~/invokeai}}
|
||||||
|
target: ${INVOKEAI_ROOT:-/invokeai}
|
||||||
- ${HF_HOME:-~/.cache/huggingface}:${HF_HOME:-/invokeai/.cache/huggingface}
|
- ${HF_HOME:-~/.cache/huggingface}:${HF_HOME:-/invokeai/.cache/huggingface}
|
||||||
# - ${INVOKEAI_MODELS_DIR:-${INVOKEAI_ROOT:-/invokeai/models}}
|
# - ${INVOKEAI_MODELS_DIR:-${INVOKEAI_ROOT:-/invokeai/models}}
|
||||||
# - ${INVOKEAI_MODELS_CONFIG_PATH:-${INVOKEAI_ROOT:-/invokeai/configs/models.yaml}}
|
# - ${INVOKEAI_MODELS_CONFIG_PATH:-${INVOKEAI_ROOT:-/invokeai/configs/models.yaml}}
|
||||||
|
Loading…
Reference in New Issue
Block a user