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