Changing a port is difficult without editing docker-compose.yml
(Updating via git pull is difficult)
#430
Replies: 5 comments 13 replies
-
Сan specify different ports for each profile in services:
auto: &automatic
...
profiles: ["auto"]
ports: ["7860:7860"]
invoke:
...
profiles: ["invoke"]
ports: ["7861:7860"] |
Beta Was this translation helpful? Give feedback.
-
@AbdBarho I thought that if a port |
Beta Was this translation helpful? Give feedback.
-
nano docker-compose.yml # Change ports Now it is necessary to update so: mv docker-compose.yml tmp.yml
git pull
cat tmp.yml # Read file with ports
nano docker-comoose.yml # Change ports
rm -Rf tmp.yml |
Beta Was this translation helpful? Give feedback.
-
After 7 years, functionality to really override something in docker-compose.yml file is coming, but still not yet on production. My suggestion here would be to change
This will be backward compatible, as not specifying WEBUI_PORT will use default value
Then Also |
Beta Was this translation helpful? Give feedback.
-
My machine is too weak to run multiple webui interfaces, so still - there might be some problems with sharing same graphics card memory by two different apps in the same time. It's up to you checking it! :) |
Beta Was this translation helpful? Give feedback.
-
Due to the fact that docker-compose specifies
ports
for all profiles:stable-diffusion-webui-docker/docker-compose.yml
Lines 4 to 5 in 445f3f8
it is difficult to launch multiple profiles with different ports
And if you specify
ports
indocker-compose.override.yml
, then they are not overridden, but merged:docker-compose.override.yml
:Result:
https://docs.docker.com/compose/extends/#adding-and-overriding-configuration
Beta Was this translation helpful? Give feedback.
All reactions