-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a standardized folder to store user data (Docker) #3633
Comments
I'm not sure if we want to do that. See this comment. In short, the configuration directory is for files that the user provides or maintains, while the working (aka data) directory is for the persistent files that AGH creates and that are not guaranteed to be human-readable. |
For Docker installs, it doesn't make sense for the current folders to exist. Why use |
I don't quite get your question, sorry. If you want to ask, why do we expect these volumes to be mounted as subdirectories of |
I meant to say that in Docker installs, there's the flexibility of choosing folders that doesn't have to be the same as a bare metal install. E.g. |
It's okay to have two volume mounts in a containerised environment. It further seems okay to follow a "classical", POSIX oriented file system layout, if deployment as a container is not the primary and/or only target for software distribution. In cloud-native world, of course, things are oftentimes handled a little differently, governed by these systems' constraints. |
Begone bot. |
@ainar-g can this bot situation please be dealt with? |
IMHO, this proposal appears to be one based on personal preference and not anything grounded in either BCP or building a better product. Having 2 dedicated directories is not convoluted at all and in the xNIX world, this is not only common, but in the particular case of AGH, quite tame. I believe an old but very appropo adage applies here: "If it ain't broke, don't go fixin' it". |
Problem Description
AGH currently uses two folders to store its data:
/opt/adguardhome/conf
that stores the lone configuration file and/opt/adguardhome/work
that stores the remaining user data including databases and filters text files.This file structure feels very convoluted, because there are multiple folders and a muddy hierarchy. The presence of a "work" folder feels particularly redundant.
Proposed Solution
A singular
/config
folder that stores user data in a single folder with a less confusing hierarchy, including databases in the root (not inside anotherdata
folder).This same could be used for non-Docker installations as well, just
/opt/adguardhome/
.Alternatives Considered
Additional Information
I'd also request the use of better file names to denote their purpose, e.g.
sessions.db
→web_sessions.db
.The text was updated successfully, but these errors were encountered: