Right now it looks like you can only run lemmy in docker-compose, is there work on an official container?

  • Ruud@lemmy.worldM
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    I think there’s a misunderstanding. In the docker-compose.yml, you specify services, and these services can use the official container images. The only thing the docker-compose actually does is define your services so you don’t have to specify them each time starting a container.

  • DawnOfRiku@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Docker Compose is just a tool to elegantly lay out containers in a stack. It’s not a replacement for containers and images. If you need the image names themselves for use outside of compose like in a NAS GUI setting, they would be in the compose file.

  • ericjmorey@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 years ago

    As someone who doesn’t know much about this as I’m jumping in the deep end, what’s the difference?

    • Svengarlic @lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      A Docker image is a read-only template that contains the instructions for building a container. A Docker compose file is a YAML file that defines a set of Docker services.

      A Docker image is a static artifact that can be used to create multiple containers. A Docker compose file is a dynamic configuration file that can be used to create and manage containers at runtime.

      Docker images are typically used for building and deploying applications. Docker compose files are typically used for managing and orchestrate containers.

      That came out of an AI. I can deploy images more easily on my NAS, and I’ve worked with them in the past, so I want an official container so I can deploy it alongside all the other docker containers I have running.

      • ericjmorey@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        That came out of an AI

        is that why it doesn’t quite make sense to me?

        Can you make a container from the compose file?

        • Svengarlic @lemmy.worldOP
          link
          fedilink
          arrow-up
          0
          ·
          2 years ago

          Yes, but the benefit of an official image would be that I wouldn’t have to recreate it when a new version was released, it would update itself when I reload the container.

            • Svengarlic @lemmy.worldOP
              link
              fedilink
              arrow-up
              0
              ·
              2 years ago

              I mean, I know I don’t have to recreate it when I use a normal container, but I’m not clear when using compose

                • bitrate@lemmy.world
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  2 years ago

                  You can do whatever you want inside the container. If you wanted to update inside it, you can, but it’s probably not worth the effort. The downtime depending on the app can be just a few seconds when you rebuild the container.