NathanVaughn / powerpanel-business-docker

Docker image for CyberPower PowerPanel Business
https://hub.docker.com/r/nathanvaughn/powerpanel-business
MIT License
25 stars 15 forks source link

Only data in volume - bind mounts possible #24

Closed snorre-k closed 1 year ago

snorre-k commented 1 year ago

Hi Nathan,

I tried to overcome the problem with the whole installation being copied into the volume.

To solve this I did:

This works for the following assets:

Unfortunately the assets cert/ and extcmd/ as links give massive Java errors and prevent the application from starting. So these directories would need an additional bind mount or volume.

Now also the bind mounts to host directories work :)

Please have a look and merge if you like it.

CU Snorre

NathanVaughn commented 1 year ago

Thanks for the work on this! I'll merge it, but not re-publish existing tags so I don't break any existing setups. If/when a new version of powerpanel is released, I'll publish a new version with this included, and update the README