snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.18k stars 3.2k forks source link

[v7.0.010 build 14684] snipe-it – Docker subdirectory #15316

Open Bitskay opened 3 months ago

Bitskay commented 3 months ago

Debug mode

Describe the bug

Hi there

trying to install snipe-it with docker run on a linux machine. It basically works. But I have a few things thats I am hanging on. I’d like to use subdirectories which is descibed here: https://snipe.it.readme.io/docs/subdirectories. I made the changes and it works as well. But now I have the problem – it’s not persistence. I could make volumes over and over, but it’s not my goal and what happens if there are updates for these directories? I do have volumes beside standard volume var/lib/snipeit: /etc/apache2 (because for changes for subdirectories) and /var/www/html/public (because for changes for subdirectories in .htaccess). Is there a way not to have volumes for /apache2 and /public? Or at least no /public. I can’t make a volume only with .htaccess, because its a file no directory.

Hope someone can help me.

Reproduction steps

Can't make changes for subdirectory to persistent without making volumes which could make troubles after geeting updates apache or inside directory /public.

Expected behavior

Get a solution to make these files persistent without having full directory /public and /apache2 on two volumes.

Screenshots

No response

Snipe-IT Version

v7.0.010 build 14684

Operating System

Ubuntu

Web Server

apache

PHP Version

-

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

welcome[bot] commented 3 months ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.