Deploy a Website With Ansible and Docker

Поделиться
HTML-код
  • Опубликовано: 16 дек 2024

Комментарии • 36

  • @SB-qm5wg
    @SB-qm5wg 7 месяцев назад +1

    Great explaining of the steps. Thank you.

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +1

      Thanks, glad it helped.

  • @rayjames7360
    @rayjames7360 7 месяцев назад +1

    I could not get this working, but found the answer on the Discord channel.
    I had to use version "community.docker.docker_compose_v2" instead of "community.docker.docker_compose".
    Still not sure of all the reasons, but I think because on my Linux Mint server I have a manually installed version of Docker and Docker-compose.
    I am not using docker-compose installed with pip3.
    Thanks to the help I got on Discord, it is now working.

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +1

      Ok great. I think it's because docker-compose is deprecated and instead it's docker compose. I'll need to fix that.

    • @rayjames7360
      @rayjames7360 7 месяцев назад

      @@Jims-Garage I have "Docker Compose version v2.27.0" which is the one I am actually accessing.
      I was confused because I had also used pip3 which had installed "docker-compose-1.29.2" but apparently this is not what is being used.

  • @michaelschalck
    @michaelschalck 7 месяцев назад +1

    Thanks for a great video Jim :) Was struggling a bit until it cam to my mind "maybe i should have traefik installed on my docker host first, before the nginx container would spin up" After that everything worked like a charm. Looking forward to start the kubernetes cluster part. :)

  • @gustavopoa
    @gustavopoa 4 месяца назад +1

    Thanks Jim 👍

  • @PCMagikHomeLab
    @PCMagikHomeLab 7 месяцев назад +2

    MAN, like always, thumbs up!

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +1

      Thanks, appreciate the feedback

    • @PCMagikHomeLab
      @PCMagikHomeLab 7 месяцев назад +1

      @@Jims-Garage Jim, can I be honest? I like Your style, You try to predict all of difficulties in homelabing. And Your tutorials are amazing. Never stop, flow is in You. Let yourself be carried away by this story. Thanks a lot of another pice of Your expirience!

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +1

      @@PCMagikHomeLab really appreciate that feedback, good to hear that I'm striking the right balance.
      I'm eager to start the next series on building out the new lab. Another opportunity to start from scratch with a more advanced set-up and bring you guys along.

    • @PCMagikHomeLab
      @PCMagikHomeLab 7 месяцев назад +1

      @@Jims-Garage I think it's really good idea, something simple for everyone. Sometimes I think to much, and simple solutions are the best🤔

  • @javisartdesign
    @javisartdesign 7 месяцев назад +3

    thanks and great video. Just to improve your Ansible script, you should consider using variables, for example for the folder owner and group it might be better to use {{ ansible_user }} instead hardcoding the user

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +2

      Thanks, I agree. I am going to cover variables, roles etc soon

  • @E5SEFUSAR
    @E5SEFUSAR 7 месяцев назад +1

    Thanks for your hard work on this stuff mate! I would have been really nice to also have Ansible manage that DNS record for that demo website too!

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +1

      Thanks for the idea! It should simply be a case of copying my Traefik video files over and deploying that instead.
      Edit: ooh just realised you mean adding the record to local DNS. Sure, that should be doable by performing a docker exec and modifying the record. I'll have to experiment.

    • @RobertFabiano
      @RobertFabiano 7 месяцев назад

      Was going to say, but someone already did...😂

  • @nahum35
    @nahum35 7 месяцев назад +3

    Hey Jim, Thanks for this great video, Looking forward for more Ansible videos combining Kubernetes tasks in the near future👌👌
    👌

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад

      Thanks, a few more videos covering the basics before we get onto the exciting stuff

    • @nahum35
      @nahum35 7 месяцев назад

      @@Jims-Garage That's the way, cheers!! 😉😉😉

  • @roelofmol8548
    @roelofmol8548 7 месяцев назад +2

    Nice video 👌 been trying to make my home lab as code and this helped a lot.

  • @shootinputin6332
    @shootinputin6332 6 месяцев назад +1

    Hi, Jim, I might have missed it, but have you done a tutorial on pulling down compose, playbook (and other) files from a public/private github repository using ansible-pull? Say, for example, where you did the builtin.copy for the nxginx compose to the remote, it would be cool if we could grab it from our github repos instead

    • @Jims-Garage
      @Jims-Garage  6 месяцев назад +1

      I haven't, I am considering doing it in future. It's thankfully pretty simple.

  • @jdratlif
    @jdratlif 7 месяцев назад +1

    How long have you been using ansible? Is this something you use in your day job?

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад

      On and off for a few years, only in a homelab capacity. I don't work in IT Ops.

    • @jdratlif
      @jdratlif 7 месяцев назад +1

      @@Jims-Garage I'm really surprised to find out you don't work in IT. You are clearly very dedicated to your home lab. There's a lot of things I don't think I would ever have learned if I weren't using them at work.

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад +1

      @@jdratlif I do work in InfoSec but don't really use any of this stuff in day to day. I do it to understand IT Ops.

  • @ducki8845
    @ducki8845 7 месяцев назад

    little nitpicking: 4:15: you forgot to explain the "enabled" ;)

  • @PW-72648
    @PW-72648 7 месяцев назад +1

    😏ansible copy?

  • @vng-alien
    @vng-alien 7 месяцев назад +1

    all lower case... super low key copying

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад

      Oops I forgot to change the title 😂

  • @RazoBeckett.
    @RazoBeckett. 7 месяцев назад +1

    Too Late uploads

    • @Jims-Garage
      @Jims-Garage  7 месяцев назад

      Let me know your schedule and I'll try to satisfy it 😉