Find the Docker Compose file for the desired service. For example, you can use the Open Chat UI and Ollama setup from the following GitHub repository:
Open Chat UI Docker Compose File
Click Next and proceed to add or modify the configuration. Replace any ${} placeholders with the desired values, such as latest or any specific version you prefer. You can also make changes later if needed.
Create the Docker Containers:
Click Create. The Docker containers will be automatically created based on the provided configuration.
Access the Service:
After the containers are created, you can access the service by adding a new URL.
Cosmos typically auto-detects the correct port, so you usually only need to create the URL.
You can now access the service as usual.
Customize with Labels:
Optionally, you can customize the service further using labels such as:
cosmos-icon
cosmos-stack
cosmos-stack-main
Modify Environment Variables:
Refer to the documentation for the Docker service and its environment variables. You can modify these variables directly from the Docker or Compose tab in Cosmos.
Additionally here’s an excellent tutorial to do it via Docker Compose in Cosmos Cloud:
https://discord.com/channels/1083875833824944188/1283413252356706416/1283785229923909694
Locate the Docker Compose File:
Docker Compose Configuration:
ollama
andopen-webui
. This is the configurationImport the Docker Compose File:
${}
placeholders with the desired values, such aslatest
or any specific version you prefer. You can also make changes later if needed.Create the Docker Containers:
Access the Service:
Customize with Labels:
cosmos-icon
cosmos-stack
cosmos-stack-main
Modify Environment Variables:
That’s it!