Coder Social home page Coder Social logo

A new /data/compose/3/v<x> directory is created with a vanilla database.sqlite whenever i pull new releases about nginx-proxy-manager HOT 4 OPEN

Bodo-von-Greif avatar Bodo-von-Greif commented on May 29, 2024
A new /data/compose/3/v directory is created with a vanilla database.sqlite whenever i pull new releases

from nginx-proxy-manager.

Comments (4)

remcoros avatar remcoros commented on May 29, 2024

That is an issue (or feature) of portainer when you create a stack and use relative paths for your volumes. Whenever the stack/compose content is updated, it creates a new version and you end up with a whole new 'v##' folder which is used for relative volume mappings. I switched to using absolute paths for the volumes because of this.

from nginx-proxy-manager.

Bodo-von-Greif avatar Bodo-von-Greif commented on May 29, 2024

Hi remcoros,

at the end i suspected portainer for doing this. Thanks a lot for confirming this!
Also i see there is a version switch at the right upper corner when you edit the stack.
How did you manage to switch to absolute paths?

Best,
Bodo

from nginx-proxy-manager.

remcoros avatar remcoros commented on May 29, 2024

don't use ./data:/data, but point to a full path on your host system like this:

    volumes:
      - /data/nginx-proxy-manager/data:/data

from nginx-proxy-manager.

Bodo-von-Greif avatar Bodo-von-Greif commented on May 29, 2024

Thats a way better answer than KI:

Gemini: how do i prevent portainer from creating new versions of stack direcories?

There isn't a direct way to disable stack versioning in Portainer currently. This feature was a point of discussion among users on the Portainer GitHub Discussions https://github.com/orgs/portainer/discussions/10415.

Here are two options to consider:

  1. Use Portainer CE: If stack versioning is a major inconvenience, you can switch to the Portainer Community Edition (CE). Unlike the Business Edition, the CE version doesn't automatically create new versions for your stacks.

  2. Manage Data Volumes Manually: Even with stack versioning, your data volumes (folders containing persistent data) typically remain in the original location. You can manage these volumes manually and copy them over to the new version directory if needed. This approach requires some manual intervention but avoids creating new data copies every time.

thanks again!

from nginx-proxy-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.