Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. General Discussion
  4. πŸ•οΈ my adventures in #selfhosting: day 249 (mind of a #newbie edition) 🧠

πŸ•οΈ my adventures in #selfhosting: day 249 (mind of a #newbie edition) 🧠

Pianificato Fissato Bloccato Spostato General Discussion
selfhostingnewbiedockermysocalledsudol
18 Post 7 Autori 34 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • PiΓΉ Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione Γ¨ stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Chris. R. πŸŽ§πŸŽΌβ˜•πŸ

    @elena thanks a lot for sharing your experiences! Enjoy your well-deserved break πŸ™‚

    Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
    Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
    Elena Rossini on GoToSocial ⁂
    scritto su ultima modifica di
    #4

    @haploc I enjoy sharing my failures so hopefully fellow newbies do not repeat them... so at least they were useful for something πŸ˜…β€‹

    Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined 1 Risposta Ultima Risposta
    • Vincentundefined Vincent

      @elena You may have a look to #portainer to manage your docker stacks. It ease the management dramatically.

      Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
      Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
      Elena Rossini on GoToSocial ⁂
      scritto su ultima modifica di
      #5

      @vincent yes yes I looked into it but I'm gonna stick to CLI for now. I really enjoy using it over a GUI πŸ˜…β€‹

      1 Risposta Ultima Risposta
      • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

        @haploc I enjoy sharing my failures so hopefully fellow newbies do not repeat them... so at least they were useful for something πŸ˜…β€‹

        Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Questo utente Γ¨ esterno a questo forum
        Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Questo utente Γ¨ esterno a questo forum
        Chris. R. πŸŽ§πŸŽΌβ˜•πŸ
        scritto su ultima modifica di
        #6

        @elena I think you're learning much more than a lot of "professional" sysadmins out there 😬

        Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
        • Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Chris. R. πŸŽ§πŸŽΌβ˜•πŸ

          @elena I think you're learning much more than a lot of "professional" sysadmins out there 😬

          Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
          Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
          Elena Rossini on GoToSocial ⁂
          scritto su ultima modifica di
          #7

          @haploc I sure learn A TON but I'm not being humble when I say that my approach is basically a "spray and pray" and copying and pasting lines of code. I truly know nothing πŸ˜†β€‹

          Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined 1 Risposta Ultima Risposta
          • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

            @haploc I sure learn A TON but I'm not being humble when I say that my approach is basically a "spray and pray" and copying and pasting lines of code. I truly know nothing πŸ˜†β€‹

            Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Questo utente Γ¨ esterno a questo forum
            Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Questo utente Γ¨ esterno a questo forum
            Chris. R. πŸŽ§πŸŽΌβ˜•πŸ
            scritto su ultima modifica di
            #8

            @elena the willingness to learn by doing will get you further ahead, that's a very strong skill too

            Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
            • Chris. R. πŸŽ§πŸŽΌβ˜•πŸundefined Chris. R. πŸŽ§πŸŽΌβ˜•πŸ

              @elena the willingness to learn by doing will get you further ahead, that's a very strong skill too

              Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
              Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
              Elena Rossini on GoToSocial ⁂
              scritto su ultima modifica di
              #9

              @haploc thanks ☺️

              1 Risposta Ultima Risposta
              • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                πŸ•οΈ my adventures in #selfhosting: day 249 (mind of a #newbie edition) 🧠

                a blog post about what it's like for newbies to self-host... read till the end to find out what caused my OVH VPS fail (a facepalm moment for sure):

                πŸ”—β€‹: https://news.elenarossini.com/my-so-called-sudo-life/my-adventures-in-self-hosting-day-249-mind-of-a-newbie-edition/

                I'll probably take a break from self-hosting and reading about #Docker (my Everest) for the rest of the weekend... so I can come back to it on Monday with my batteries fully recharged πŸ˜…β€‹

                #MySoCalledSudoLife

                Piero Bosioundefined Questo utente Γ¨ esterno a questo forum
                Piero Bosioundefined Questo utente Γ¨ esterno a questo forum
                Piero Bosio
                scritto su ultima modifica di
                #10

                @elena

                If you use Docker, system security is the most important and difficult thing to ensure.

                https://www.trendmicro.com/it_it/what-is/container-security/docker.html

                1 Risposta Ultima Risposta
                • Sistema ha condiviso questa discussione
                • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                  πŸ•οΈ my adventures in #selfhosting: day 249 (mind of a #newbie edition) 🧠

                  a blog post about what it's like for newbies to self-host... read till the end to find out what caused my OVH VPS fail (a facepalm moment for sure):

                  πŸ”—β€‹: https://news.elenarossini.com/my-so-called-sudo-life/my-adventures-in-self-hosting-day-249-mind-of-a-newbie-edition/

                  I'll probably take a break from self-hosting and reading about #Docker (my Everest) for the rest of the weekend... so I can come back to it on Monday with my batteries fully recharged πŸ˜…β€‹

                  #MySoCalledSudoLife

                  Grow Fediverseundefined Questo utente Γ¨ esterno a questo forum
                  Grow Fediverseundefined Questo utente Γ¨ esterno a questo forum
                  Grow Fediverse
                  scritto su ultima modifica di
                  #11
                  @elena Great progress! Yeah the docker desktop being front and center sounds like a familiar newbie pit trap 😩 There are so many times when project sites or documentation make certain assumptions about what they think is "common knowledge", and then as newbies we stumble due to it. Like that ancient roman recipe for awesome concrete that listed "water" but turns out SEA water was required for it to work. Or like how "chicken eggs" are implied in all our food recipes calling for eggs. A lot of tech assumes we know the kinds of water and eggs to deal with 😬
                  Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
                  • Grow Fediverseundefined Grow Fediverse
                    @elena Great progress! Yeah the docker desktop being front and center sounds like a familiar newbie pit trap 😩 There are so many times when project sites or documentation make certain assumptions about what they think is "common knowledge", and then as newbies we stumble due to it. Like that ancient roman recipe for awesome concrete that listed "water" but turns out SEA water was required for it to work. Or like how "chicken eggs" are implied in all our food recipes calling for eggs. A lot of tech assumes we know the kinds of water and eggs to deal with 😬
                    Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                    Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                    Elena Rossini on GoToSocial ⁂
                    scritto su ultima modifica di
                    #12

                    @growfediverse thank you for the thoughtful comment. Indeed the things that tricked me were:

                    (a) the Docker site only showing images of Docker Desktop… and people online talking about using Docker with GUIs (like Portainer)

                    (b) the official announcement by Ghost that they would be sunsetting Ghost CLI in the next major release.

                    I conflated the two things and thought I would have to manage Ghost in Docker only through the GUI πŸ€¦πŸ»β€β™€οΈ

                    I hope this makes sense. It did to me!

                    I’m super grateful for the posts I got from followers telling me I could use Docker simply via CLI. Like @antoine_ali πŸ™

                    1 Risposta Ultima Risposta
                    • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                      πŸ•οΈ my adventures in #selfhosting: day 249 (mind of a #newbie edition) 🧠

                      a blog post about what it's like for newbies to self-host... read till the end to find out what caused my OVH VPS fail (a facepalm moment for sure):

                      πŸ”—β€‹: https://news.elenarossini.com/my-so-called-sudo-life/my-adventures-in-self-hosting-day-249-mind-of-a-newbie-edition/

                      I'll probably take a break from self-hosting and reading about #Docker (my Everest) for the rest of the weekend... so I can come back to it on Monday with my batteries fully recharged πŸ˜…β€‹

                      #MySoCalledSudoLife

                      TomΓ‘Ε‘ Odehnalundefined Questo utente Γ¨ esterno a questo forum
                      TomΓ‘Ε‘ Odehnalundefined Questo utente Γ¨ esterno a questo forum
                      TomΓ‘Ε‘ Odehnal
                      scritto su ultima modifica di
                      #13

                      @elena Thanks for the write-up Ele and best of a luck with your containerization journey! While it might be a bit tricky sometimes, once you get more familiar with containers, you will like it (at least I do .)

                      To the OVH incident - I don't believe it was the keys. Having them present in the root dir shouldn't do harm, unless they would be accessible from outside. Which I don't think was the case if the only thing you did was install docker, make it internet accessible and secure the socket with certs.

                      Anyway, using SSH (either directly from docker client or via tunneling) might be preferable as you won't expose docker to internetz at all.

                      Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
                      • TomΓ‘Ε‘ Odehnalundefined TomΓ‘Ε‘ Odehnal

                        @elena Thanks for the write-up Ele and best of a luck with your containerization journey! While it might be a bit tricky sometimes, once you get more familiar with containers, you will like it (at least I do .)

                        To the OVH incident - I don't believe it was the keys. Having them present in the root dir shouldn't do harm, unless they would be accessible from outside. Which I don't think was the case if the only thing you did was install docker, make it internet accessible and secure the socket with certs.

                        Anyway, using SSH (either directly from docker client or via tunneling) might be preferable as you won't expose docker to internetz at all.

                        Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                        Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                        Elena Rossini on GoToSocial ⁂
                        scritto su ultima modifica di
                        #14

                        @def thank you TomΓ‘Ε‘!

                        My point was to say - and excuse my ignorance as a non-dev - that I had indeed created the certificates but put them in the wrong place, so they weren't protecting the Docker daemon (because they were in the root folder, outside the Docker installation). I thought I had missed a crucial second step of putting them in the right place.

                        I shall not repeat the same mistake and now I've changed the ssh port and created login via keys... I will turn off password authentication as soon as I'm back in Paris next weekend. I want to make sure I have the private SSH keys installed on all my computers in the .ssh folder (since I'm on a desktop computer now that stays here).

                        Learning new things every day... since changing the ssh port the number of banned users is now down to 0.

                        I will wait till September to try re-installing Docker. I won't be in a rush but will take all the precautions I can take...

                        TomΓ‘Ε‘ Odehnalundefined 1 Risposta Ultima Risposta
                        • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                          πŸ•οΈ my adventures in #selfhosting: day 249 (mind of a #newbie edition) 🧠

                          a blog post about what it's like for newbies to self-host... read till the end to find out what caused my OVH VPS fail (a facepalm moment for sure):

                          πŸ”—β€‹: https://news.elenarossini.com/my-so-called-sudo-life/my-adventures-in-self-hosting-day-249-mind-of-a-newbie-edition/

                          I'll probably take a break from self-hosting and reading about #Docker (my Everest) for the rest of the weekend... so I can come back to it on Monday with my batteries fully recharged πŸ˜…β€‹

                          #MySoCalledSudoLife

                          Jess Robinsonundefined Questo utente Γ¨ esterno a questo forum
                          Jess Robinsonundefined Questo utente Γ¨ esterno a questo forum
                          Jess Robinson
                          scritto su ultima modifica di
                          #15

                          @elena good luck! As a long time linux user / software dev docker drives me batty! I shall probably make extra effort to unwrap ghost from its new docker shell when the time comes

                          Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
                          • Elena Rossini on GoToSocial ⁂undefined Elena Rossini on GoToSocial ⁂

                            @def thank you TomΓ‘Ε‘!

                            My point was to say - and excuse my ignorance as a non-dev - that I had indeed created the certificates but put them in the wrong place, so they weren't protecting the Docker daemon (because they were in the root folder, outside the Docker installation). I thought I had missed a crucial second step of putting them in the right place.

                            I shall not repeat the same mistake and now I've changed the ssh port and created login via keys... I will turn off password authentication as soon as I'm back in Paris next weekend. I want to make sure I have the private SSH keys installed on all my computers in the .ssh folder (since I'm on a desktop computer now that stays here).

                            Learning new things every day... since changing the ssh port the number of banned users is now down to 0.

                            I will wait till September to try re-installing Docker. I won't be in a rush but will take all the precautions I can take...

                            TomΓ‘Ε‘ Odehnalundefined Questo utente Γ¨ esterno a questo forum
                            TomΓ‘Ε‘ Odehnalundefined Questo utente Γ¨ esterno a questo forum
                            TomΓ‘Ε‘ Odehnal
                            scritto su ultima modifica di
                            #16

                            @elena Ok, that might explain it, thanks for the reply.

                            SSH with keys and local Docker socket should be sufficient precaution πŸ™‚ Again, good luck!

                            Elena Rossini on GoToSocial ⁂undefined 1 Risposta Ultima Risposta
                            • TomΓ‘Ε‘ Odehnalundefined TomΓ‘Ε‘ Odehnal

                              @elena Ok, that might explain it, thanks for the reply.

                              SSH with keys and local Docker socket should be sufficient precaution πŸ™‚ Again, good luck!

                              Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                              Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                              Elena Rossini on GoToSocial ⁂
                              scritto su ultima modifica di
                              #17

                              @def thanks! I hope so πŸ˜…β€‹

                              1 Risposta Ultima Risposta
                              • Jess Robinsonundefined Jess Robinson

                                @elena good luck! As a long time linux user / software dev docker drives me batty! I shall probably make extra effort to unwrap ghost from its new docker shell when the time comes

                                Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                                Elena Rossini on GoToSocial ⁂undefined Questo utente Γ¨ esterno a questo forum
                                Elena Rossini on GoToSocial ⁂
                                scritto su ultima modifica di
                                #18

                                @castaway aw thank you for your comment, it makes me feel so much better as a newbie. I'm honestly terrified of Docker now because of all the holes it pokes in a VPS's security...

                                1 Risposta Ultima Risposta
                                Rispondi
                                • Topic risposta
                                Effettua l'accesso per rispondere
                                • Da Vecchi a Nuovi
                                • Da Nuovi a Vecchi
                                • PiΓΉ Voti


                                • Accedi

                                • Accedi o registrati per effettuare la ricerca.
                                • Primo post
                                  Ultimo post