mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-21 06:14:00 +00:00
Add option to set the docker user ID and group ID to the current user
This commit is contained in:
parent
063665eae1
commit
dbd992171f
2 changed files with 8 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
|
||||||
x-base_service: &base_service
|
x-base_service: &base_service
|
||||||
|
user: "${USER_ID:-0:0}"
|
||||||
ports:
|
ports:
|
||||||
- "7860:7860"
|
- "7860:7860"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
7
run.sh
Executable file
7
run.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/bash
|
||||||
|
if [ "$#" -ne "1" ]
|
||||||
|
then
|
||||||
|
echo "usage: $ ./run.sh [ download | auto | auto-cpu | invoke | sygil | sygil-sl ]"
|
||||||
|
else
|
||||||
|
USER_ID=$(id -u):$(id -g) docker compose --profile $1 up --build
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue