feat: support local .env file with docker-compose

This commit is contained in:
Self Denial
2024-11-17 21:24:16 -07:00
parent 6834512594
commit 947ef17710

View File

@@ -30,6 +30,7 @@ services:
image: sd-auto:78 image: sd-auto:78
environment: environment:
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api - CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
env_file: .env
auto-cpu: auto-cpu:
<<: *automatic <<: *automatic
@@ -37,6 +38,7 @@ services:
deploy: {} deploy: {}
environment: environment:
- CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api - CLI_ARGS=--no-half --precision full --allow-code --enable-insecure-extension-access --api
env_file: .env
comfy: &comfy comfy: &comfy
<<: *base_service <<: *base_service
@@ -49,6 +51,7 @@ services:
- USE_GID=0 - USE_GID=0
- USE_USER=root - USE_USER=root
- USE_GROUP=root - USE_GROUP=root
env_file: .env
comfy-cpu: comfy-cpu:
@@ -57,3 +60,4 @@ services:
deploy: {} deploy: {}
environment: environment:
- CLI_ARGS=--cpu - CLI_ARGS=--cpu
env_file: .env