I’m not exactly a linux beginner but I’m far from an expert and I could use some pointers. I have a domain and a VPS through Namecheap, I chose Ubuntu 20.04 LAMP and I’ve tried several guides to get this working but something always goes wrong sooner or later.

My latest attempt is to follow along with this guide: https://join-lemmy.org/docs/administration/install_docker.html

No errors until the docker-compose up -d command, then

ERROR: yaml.constructor.ConstructorError: while constructing a mapping in “./docker-compose.yml”, line 26, column 12 found unhashable key in “./docker-compose.yml”, line 26, column 13

which leads to image: {{ lemmy_docker_image }}

I guess I could start over with a different guide but I’m just chasing my tail at this point. Could any kind soul suggest where to go from here?

  • slashzero@hakbox.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Hi there! This sounds like you might just have a typo in your docker-compose.yml file. It might be helpful if you posted your docker-compose.yml contents here (be sure to remove any sensitive information).

    Line 26 of my docker-compose.yml file is the volume block/map for letsencrypt. Did you perhaps mix tabs and spaces, or have one too many spaces in your indentations, in your yaml file? That’s a no-no…

    Personally, I setup my instance using the same guide as you, opting for the docker containers. There were definitely a few pitfalls to deal with.

    • IchNichtenLichten@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 year ago

      Here you go! There shouldn’t be any sensitive info in there, I haven’t modified it. The command in the instructions:

      wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/docker-compose.yml

      obtained the file and there’s no instruction to modify it prior to running docker-compose up -d which is where it fails.

      Edit: Lemmy screws up the formatting. It looks fine pasted into to text area but is messed up when I post. See the above link, that’s what I’m using.

      • slashzero@hakbox.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        Sorry I didn’t get a chance to look at this, but I’m mostly on mobile and the link doesn’t work.

        For future reference you can put it in a code block and lemmy-ui should be able to render it for you.

        Example code block