Skip to content
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

What is the correct volume declaration for docker compose? #32

Open
4oijq342 opened this issue Jun 30, 2023 · 1 comment
Open

What is the correct volume declaration for docker compose? #32

4oijq342 opened this issue Jun 30, 2023 · 1 comment

Comments

@4oijq342
Copy link

I have a bunch of config and data volumesthat I use for my containers.
All of them hold configuration except the data volume, but they are all functionally identical.

If I use this format it results in duplicate directories being created by the filebrowser container under my data directory:

    volumes:
      - "config-bazarr:/srv/config-bazarr"
      - "config-delugevpn:/srv/config-delugevpn"
      - "config-emby:/srv/config-emby"
      - "config-filebrowser:/srv"
      - "config-lidarr:/srv/config-lidarr"
      - "config-pihole:/srv/config-pihole"
      - "config-prowlarr:/srv/config-prowlarr"
      - "config-radarr:/srv/config-radarr"
      - "config-readarr:/srv/config-readarr"
      - "config-sonarr:/srv/config-sonarr"
      - "data:/srv/data"

Whereas if I do not specify a volume for /srv, docker creates a volume (which is normal and expected).
The weird thing is that it looks exactly like my code from above:
docker-autocompose

    volumes:
      - "config-bazarr:/srv/config-bazarr"
      - "config-delugevpn:/srv/config-delugevpn"
      - "config-emby:/srv/config-emby"
      - "config-filebrowser:/srv"
      - "config-lidarr:/srv/config-lidarr"
      - "config-pihole:/srv/config-pihole"
      - "config-prowlarr:/srv/config-prowlarr"
      - "config-radarr:/srv/config-radarr"
      - "config-readarr:/srv/config-readarr"
      - "config-sonarr:/srv/config-sonarr"
      - "data:/srv/data"

What is the correct way to use docker compose and not have duplicate nested directories?

@4oijq342
Copy link
Author

closed in favor of filebrowser/filebrowser#2523

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant