Replies: 2 comments 3 replies
-
ty-pi-cal : I was searching for days if anything already exists around, and few minutes after posting, I saw my bin/console offering me " make:docker:database". I swear I looked here before! After testing, I see that the command doesn't take the already existing informations in the common DATABASE_URL env variable; On my side, what I usually do to make things "a bit more dynamic", is splitting DATABASE_URL into :
Therefore I can deduct some information for my docker-compose.yml :
Maybe we can deduct the DB engine from the driver? Or is there any other way to get those informations and inject them dynamically in docker-compose.yml, but keeping DATABASE_URL variable? Also adding a make:docker:backend and make:docker:server can be a thing? Fun fact: specifications were updated for docker compose and
So many ideas, so many discussions, so many cool stuff to do. I'll continue monologing here later :) |
Beta Was this translation helpful? Give feedback.
-
Hi @Nayte91 ! I don't understand your suggestion. Indeed, there is a command in the maker-bundle to customize a database service. And moreover the project can be customized with the recipes : https://github.com/dunglas/symfony-docker/blob/main/docs/extra-services.md
The project has been realized with opinion like the choice to use Caddy with the module Go of mercury and vulcan.
We already propose a php.ini optimized for Symfony applications. Alternatively you can use the SymfonyCLI as a web server that integrates Docker support to connect other services : https://symfony.com/doc/current/setup/symfony_server.html#docker-integration
Yep, you can do that. You can also split the config in the |
Beta Was this translation helpful? Give feedback.
-
Hi there,
So I don't know if there is any value into this but I was thinking that some make:system:xxxx commands are a good way for this "component" to be used,
How are we willing to need containers ?
How the container system/project folders will be structured ?
We can ask the user for thoses.
My point is : we can improve drastically usability of containers (I try to avoid naming "docker" for agnostic purposes) by programmatically creating system containers with a maker bundle, than just this (very good) static repository.
I'm a bit poor/noobish dev, but I'm quite specialized in Symfony and Docker for my little dev experience so if we can discuss about this, if I can help on any way..
WDYT ?
Beta Was this translation helpful? Give feedback.
All reactions