For user-readable files or media I store them under ~/docker/data, and for everything else I store them under ~/docker/stacks/[service] where ~/docker/stacks is maintained by Dockge.

Is there a better way to do this?

you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 10 months ago* (last edited 10 months ago)

My docker mounts just point to the folder they live in.

I’d rather have the data stored next to the config so it’s easy to find and manage.

So a folder would be services and have a compose file, config folder, and a data folder with subdirectories per service I run. Any custom dockerfiles get a folder with their build scripts.

  • source