open-webui/run.sh
Kaikawala Gedara Theekshana Nadun Bandara Kaikawla 6f5fcc2a50 branded with text
2025-03-31 12:18:15 +05:30

20 lines
473 B
Bash

#!/bin/bash
image_name="ceylon-ally"
container_name="ceylon-ally"
host_port=3000
container_port=8080
docker build -t "$image_name" .
docker stop "$container_name" &>/dev/null || true
docker rm "$container_name" &>/dev/null || true
docker run -d -p "$host_port":"$container_port" \
--add-host=host.docker.internal:host-gateway \
-v "${image_name}:/app/backend/data" \
--name "$container_name" \
--restart always \
"$image_name"
docker image prune -f