many of us run multiple docker containers and like to organize in a docker-compose file. Here is the docker command I run to run open-webui - docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --network=host --restart always ghcr.io/open-webui/open-webui:cuda
here it is in docker-compose format -
Here's the Docker Compose equivalent of the provided Docker run command:
note - I need to use the option network_mode: host for some reason. Others may not need this so it can be commented out by default.
I think others will find this useful and it can be added as an additional file for those who prefer to orchestrate docker containers using docker compose.
Originally created by @Hisma on GitHub (Jul 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3777
many of us run multiple docker containers and like to organize in a docker-compose file. Here is the docker command I run to run open-webui -
``docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --network=host --restart always ghcr.io/open-webui/open-webui:cuda``
here it is in docker-compose format -
Here's the Docker Compose equivalent of the provided Docker run command:
```yaml
version: '3.8'
services:
open-webui:
image: ghcr.io/open-webui/open-webui:cuda
container_name: open-webui
ports:
- "3000:8080"
volumes:
- open-webui:/app/backend/data
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
extra_hosts:
- "host.docker.internal:host-gateway"
network_mode: host
restart: always
volumes:
open-webui:
```
note - I need to use the option `network_mode: host` for some reason. Others may not need this so it can be commented out by default.
I think others will find this useful and it can be added as an additional file for those who prefer to orchestrate docker containers using `docker compose`.
closing this. I see it's already been done! Perhaps mention in the installation guide that alternatively users can use the docker-compose version...
<!-- gh-comment-id:2221849610 -->
@Hisma commented on GitHub (Jul 11, 2024):
closing this. I see it's already been done! Perhaps mention in the installation guide that alternatively users can use the docker-compose version...
<!-- gh-comment-id:2223637741 -->
@justinh-rahb commented on GitHub (Jul 11, 2024):
> closing this. I see it's already been done! Perhaps mention in the installation guide that alternatively users can use the docker-compose version...
That's also already mentioned: https://docs.openwebui.com/getting-started/#docker-compose
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Hisma on GitHub (Jul 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3777
many of us run multiple docker containers and like to organize in a docker-compose file. Here is the docker command I run to run open-webui -
docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --network=host --restart always ghcr.io/open-webui/open-webui:cudahere it is in docker-compose format -
Here's the Docker Compose equivalent of the provided Docker run command:
note - I need to use the option
network_mode: hostfor some reason. Others may not need this so it can be commented out by default.I think others will find this useful and it can be added as an additional file for those who prefer to orchestrate docker containers using
docker compose.@Hisma commented on GitHub (Jul 11, 2024):
closing this. I see it's already been done! Perhaps mention in the installation guide that alternatively users can use the docker-compose version...
@justinh-rahb commented on GitHub (Jul 11, 2024):
That's also already mentioned: https://docs.openwebui.com/getting-started/#docker-compose