mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-10-27 08:14:26 -04:00
feat: support local .env file with docker-compose
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user