Give permissions for docker.
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
Activate Docker Desktop. Then write the command below.
'proxy' is the name of the network in networks section of docker-compose.yml file.
docker network create proxy
Run docker-build file (which runs docker-compose) from root.
chmod +x ./docker/docker-build.sh
./docker/docker-build.sh
Or if you don't have docker-build.sh, run docker compose directly.
docker-compose builds, creates, starts, and attaches to containers for a service. -d is to start the containers in the background.
docker compose -f ./docker-compose.yml up -d --build
# or if Dockerfile is in root and you want to run without build (like refresh)
docker compose up -d
If you want to test something on bash you can run:
docker run --rm -it idbox_gpt:latest bash
# directly run [don't forget -p]
docker run --rm -ti -p 8000:8000 idbox_gpt:latest
docker/docker-compose.yml)