Hello everyone,

I’m sure there are a few people here who are fitter in #DockerCompose than I am. Currently I have the problem that when starting the docker-compose the latest data is probably not used although the local copy of the repo is up to date.

Does anyone have an idea?

https://codeberg.org/grindhold/flohmarkt/src/branch/master/docker-compose_prod.yaml

I came across the problem because of this issue and that it is not up to date because of this issue.

  • fmstrat@lemmy.nowsci.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    By data do you mean image?

    If so, make sure you run a docker compose build after pulling the repo, and also make sure you stop and remove the container. (docker stop [container]; docker rm [container]) if not using docker compose down . If you don’t remove the container, it will keep using the old image.

    • Tealk@rollenspiel.forumOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      I always thought that a docker-compose up -d also builds a new image. But apparently I have to run docker-compose up --build -d. thanks for the help