Link: github.com/azukaar/cosmos-Server/

Cosmos 0.11.0 is out with a new backup system to export all your docker containers! The Linux and Mac clients are also out for some early testing, please share your feedback!

https://preview.redd.it/htjbg0ze5rvb1.jpg?width=1695&format=pjpg&auto=webp&s=944ae33ae00c67159eddecf4ff923a1a0141e106

The new backup system works by reading the list of containers on your server and exporting a single compose file, with all the setup you need to recreate (in case of crash) or migrate your server.

The backup system triggers on every docker change, including changes you’ve made outside of Cosmos (ex. Portainer, etc…).

It outputs to a single file in your config folder, which you can backup with various strategy to keep a history of your docker containers state!

As a reminder, this exists alongside the existing features:

  • App Store 📦📱 To easily install and manage your applications, with simple installers, automatic updates and security checks
  • Customizable Homepage 🏠🖼 To access all your applications from a single place, with a beautiful and customizable UI
  • Reverse-Proxy 🔄🔗 Targeting containers, other servers, or serving static folders / SPA with automatic HTTPS, and a nice UI
  • VPN 🌐🔒 To securely access your applications from anywhere, without having to open ports on your router.
  • Authentication Server 👦👩 With strong security, multi-factor authentication and multiple strategies (OpenId, forward headers, HTML)
  • Container manager 🐋🔧 To easily manage your containers and their settings, keep them up to date as well as audit their security. Includes docker-compose support!
  • Identity Provider 👦👩 To easily manage your users, invite your friends and family to your applications without awkardly sharing credentials. Let them request a password change with an email rather than having you unlock their account manually!
  • SmartShield technology 🧠🛡 Automatically secure your applications without manual adjustments (see below for more details). Includes anti-bot and anti-DDOS strategies.

As always, eager to get some feedback on this release, here’s the rest of the changelog:

- Docker export feature for backups on every docker event
- Disable support for X-FORWARDED-FOR incoming header (needs further testing)
- Compose Import feature now supports skipping creating existing resources
- Compose Import now overwrite containers if they are differents
- Added support for cosmos-persistent-env, to persist password when overwriting containers (useful for encrypted or password protected volumes, like databases use)
- Fixed bug where import compose would try to revert a previously created volume when errors occurs
- Terminal for import now has colours
- Fix a bug where ARM CPU would not be able to start Constellation

happy hosting!

  • Paravite@alien.topB
    link
    fedilink
    English
    arrow-up
    2
    ·
    11 months ago

    I just got into selfhosted using Cosmos and I’d like to cause it makes everything less overwhelming

  • -SHINSTER007@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    noob question but would I be able to install this on a free-tier VPS and use it to manage content on a seedbox (without root access) and services on my local network?

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      You need root access to manage docker containers that’s (almost) unavoidable. Also Cosmos does not support managing remote docker instances. On the other hand, a good (and secure) pattern is to use Constellation (the integrated VPN) on 2 servers with cosmos installed on each. you can connect them together. One of the servers (the seedbox) is the main server running services but it is not exposed on the internet and the only way to access it is to connect to the VPN on the other VPS

  • Nnyan@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    I’ve tried a number of these “stacks” and some have great communities and others not so much. But the peeps with Cosmos are amongst the very best. Extremely helpful. Cosmos and YAMS are the best IMHO.

  • Jasper1224@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Wait, just to be clear, is this basically like what Truenas’ apps does, but standalone? Cause holy shit I was looking for something like this for a while. Does it support mounting network drives via NFS?

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      Truenas

      Haven’t used it, but it looks like there are overlap.

      Cosmos does not yet have storage management (but soon) and uses Docker instead of VM

      • Jasper1224@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        So Cosmos is basically just a pre-configured docker app “store”? How do you decide which containers go into the apps menu? Why does the descriptions in Github feel like it uses boldtext for some fearmongering?

  • umairshariff23@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Hey! I’ve been recently getting into VPN and 2fa and could you give me a eli15 for this? How does this work?

    I currently have my entire server port forwarded and reverse proxied on port 80 and a duckdns domain, with homepage running on port 80. After implementing this, will port 80 be taken over by cosmos?

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      The VPN part is basically a “secret” (encrypted) tunnel between multiple devices/servers. Whenever one device wants to talk to your server, it sends messages via the tunnel, and on the other end, the tunnel dispatch the message to the right port. Using this, you have access to your server without exposing all your ports, so only people connected to your VPN can see it. Keep in mind this is different than a traditional VPN who transfer all your data to the server to hide your IP. Here only the traffic to your server is tunneled. This way your other activities are not affected (performance wise especially)

      2FA uses any authenticator app (the one where you scan a QR code and get a 6 digits number) to protect your account. If someone gets your password, they still cant login because they also need your phone (unlocked) to get the 6 digits (it changes every 30 secs)

  • pnlrogue1@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Does it support Podman or is it just Docker? If it’s just Docker, please consider Podman support as it’s open source and most secure by default thanks to running as a user instead of as root yet is almost completely compatible with Docker.

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      I am considering Podman support but probably more next year when Cosmos is feature-complete for 1.0

      Keep in mind it might be a challenge to do everything rootless but I will see what I can do

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      Docker is an important ingredient in the mix, to isolate the applications completely, and make things much more streamlined than traditional VM, but I understand if it’s not for everyone

  • AngryMaritimer@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Looks and feels decent.

    One major thing unless I am blind, Sabnzbd is not in the marketplace, but nzbget is, which has been abandoned so could lead to security risks?

  • JiggySnoop@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    would it be possible to move from portainer+ caddy to cosmos ? i’m more concerned about path mapping.i have everything in different folders.

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      You dont need to do anything to migrate, Cosmos will just work with Portainer, including just picking up your existing containers

  • Moehrenstein@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Seems like i have to jump in again. Three versions ago i changed back to NPM because it handled 40+ domains faster.

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      If you are experiencing any performance issue, feel free to document them to me so I can investigate your setup and potentially fix any shortcomings :)

  • JustDalek_@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Thank you for this! Does this include volume data or do we have to manually back that up ourselves?

    I’m wondering what the full process of recovery looks like, as if it’s a compose file of all containers, I imagine this would restore brand new services unless we handle the volumes right? Or does it also back up volume data as well?

    • azukaar@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 months ago

      It does not include volume data, but backing up volumes is a planned feature too, it’s just a lot more difficult of a feature to develop :p

      Basically backing up volumes is easy without Cosmos, it’s just a folder, but backing up your container is much harder, that’s why I added it in priority