For OMV (Open Media Vault) Users #427
Closed
trythatagain
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As OMV users, we know the docker compose files are named after the folder i.e sonarr.yml, which means you can't use/test Dockge out unless you copy all files to the format Dockge uses, I did ask the author of Compose to rename the yml files to compose.yml, but he declined, which is fine by me. But I still wanted to test Dockge out. I still create my containers in OMV because at the moment it has quite a few more features than Dockge has, but that can change as time goes on. I don't use Portainer at all now.
I've used chatgpt to help write a simple bash script (don't moan about my coding, I haven't coded for 30 years plus :) )
This script will start at your compose folder and go thru each folder and copy the foldername.yml file to compose.yml, it will also copy your global.env file add it to foldername.env and write out a .env file.
You can also delete the files after if need be, from within the script.
Please be aware at the moment it will overwrite compose.yml and .env files if you have already done the copying manually.
Hopefully Dockge will have a Global.env file soon and I can alter the code for that. But for my needs it means you can play with Dockge and just remember if you edit a file in Dockge to change it in OMV.
Anyway here is the script ---
I can't seem to get the code to format correctly when I paste into here, I've tried placing it in the code '<>' from above but it just goes all pear shaped.
Can this please be deleted?
Beta Was this translation helpful? Give feedback.
All reactions