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
[–] 4 points 10 months ago (1 child)

along with the compose.yaml file, unless I need it in a different drive for any reason

  • source
  • hideshow 1 child comment
  • [–] 2 points 10 months ago

    This is me.

    For example, /srv/docker/synching contains:

    compose.yml .env ./Sync

    That last one is a directory bound to the container which contains all my sync folders.

    Occasionally it makes more sense to put the mounted folder in /srv like /srv/photos is mounted by /srv/docker/photoprism/compose.yml

    However, thats a rarity. Things mostly accessed by a single compose stack are kept alongside the other files for that stack.

  • source
  • parent