-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Addon Developer Support Request] - Can volumes be used in the /conf/*.yml files? #30
Comments
You can do anything you like in addons as far as it is not a malicious code and it works. |
Thanks @achekulaev
I am assuming that the .yml files are docker-compose files as they follow the syntax but there is no version number at the top. The docker-compose documentation says that paths relative to the compose file can be used in the host portion of a volume, so this should work, but it doesn't. |
@achekulaev Do you know what version of docker-compose these .yml files are for the addons if no version is given? And what versions are supported? |
I am not sure what you mean. These files are not being picked up automatically. In the adminer addon,, which was copied from the Mailhog, their content are being programmatically inserted into docksal.yml so they follow that version. Also I'm not sure what "voume is not working" exactly means. Lastly I don't think you should use Which is another weird thing to me. You already use ENV variable in your yml above, so it means that your image is not just |
Actually I believe I copied the code from the PHPMyAdmin (pma) addon. The wodby/adminer container looks like a better solution, as you pointed out it uses ENV variables to do the PHP configuration for Adminer. I will have to take a look at changing to this container. I just grabbed the oficial Adminer image when I set this up.
If you look at my OP you will see that means the volume is not being connected to the container as the files are not found inside the container. |
Closing this even though I still do not know why the volume was not being mounted in the container. Switching to another image that allows setting these via ENV variables is a much better solution. I have create an new issue for this. |
@frederickjh it's hard to say for sure without looking and I don't have time to check, but I guess the path
|
Hi!
I submitted the adminer addon to this repo. I realized the other day that the default PHP 2M limit on uploads maximum size does not allow for many database files to be imported as they are too big.
I found that for the adminer docker image, this PHP limit can be increased by using a volume to place a file in the
/usr/local/etc/php/conf.d/
directory. (increase → Unable to upload a file. Maximum allowed file size is 2MB.)In the
adminer/conf
folder I created auploads.ini
and then used the following in adminer.yml file:uploads.ini
When I go into the running terminal with
sh
and dols /usr/local/etc/php/conf.d/
the fileuploads.in
is not listed and the new PHP settings in the file are not used. Runningfin logs adminer
does not show any errors.So, is it possible to have volumes in the addons .yml files? Or am I missing something very obvious that I am doing incorrectly?
Thanks for your time and help!
Frederick
The text was updated successfully, but these errors were encountered: