• 0 Posts
  • 17 Comments
Joined 2 years ago
cake
Cake day: July 4th, 2023

help-circle
  • My first time I started winging it with a raspberry pi, docker, and nginx and it took me like 2 months to get one service up and running and I didn’t feel it was very secure - fail2ban didn’t work, geoblocking didn’t work, and updates were manual.

    When I re-started from scratch with an x86 device and cosmos it has been shockingly easy in comparison. Not only is it much quicker to spool the service up (app store), they can be automatically updated, the proxy has options for geoblocking, rate limiting, etc.

    I’ve even got some of the services below built from a custom compose file instead of the app store, some use remote storage and some are set up with OAuth SSO. There’s still mild troubleshooting for a lot of things but it’s been much easier for me to understand and fix issues, plus there’s an active discord community as well.






  • Additionally here’s an excellent tutorial to do it via Docker Compose in Cosmos Cloud:

    https://discord.com/channels/1083875833824944188/1283413252356706416/1283785229923909694

    1. Locate the Docker Compose File:

      • 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
    2. Docker Compose Configuration:

    3. Import the Docker Compose File:

      • Go to the ServApps section in Cosmos.
      • Click on Import 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.
    4. Create the Docker Containers:

      • Click Create. The Docker containers will be automatically created based on the provided configuration.
    5. 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.
    6. Customize with Labels:

      • Optionally, you can customize the service further using labels such as:
        • cosmos-icon
        • cosmos-stack
        • cosmos-stack-main
    7. 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.

    That’s it!




  • I haven’t tried any of those honestly. My previous setup was just a Raspberry Pi running docker with portainer GUI, and nginx pointing to one service. It took me at least a month of dealing with errors, and I got burned out when I could never get geo-blocking or fail2ban working.

    I stumbled across Cosmos when the dev posted about 0.16 release and the main draw for me was integrated reverse proxy, geo-blocking, anti-bot/ddos, and automatic updates. I have only run into a few hiccups setting it up and the discord is pretty active so my issues had either been solved before or someone answered me quick