8000 [Symfony Local Web Server] Docker integration - path to the docker-compose.yaml · Issue #38259 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Symfony Local Web Server] Docker integration - path to the docker-compose.yaml #38259

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

Closed
Plopix opened this issue Sep 21, 2020 · 4 comments
Closed

Comments

@Plopix
Copy link
Contributor
Plopix commented Sep 21, 2020

I am not sure that the good place, as it is not directly connected to the Symfony framework itself, but I try ;-)

Doc

https://symfony.com/doc/current/setup/symfony_server.html#docker-integration
Document says
When the web server detects that Docker Compose is running for the project, it automatically exposes environment variables according to the exposed port and the name of the docker-compose services.

That's great.

Problem

We don't really have details on the "how", but it does not work if the docker-compose.ya?ml is not at the root folder, correct?
I did few tests and I am pretty confident in that conclusion.

So I wonder if that would be (or if it is) possible to configure something to actually tell the Symfony Local Web Server where is the docker-compose.yaml

Use case

Application structure is this:

- application (a first symfony app)
- bridge (a second symfony app)
- legacy (something else)
- provisioning/dev (docker stuff for local dev)
- provisioning/prod (other things)

Basically we want to disconnect the hosting part and the software part, actually even for simpler projects we default with application and provisioning at the root of the project.

Possible solution

We would need to tell to Symfony Local Web Server that the docker-composer folder is ../provisioning/dev/
Maybe in a config file, or an ENV var?

Thanks!

@Plopix Plopix changed the title [Symfony Local Web Server] Docker integration - path the docker-compose.yaml [Symfony Local Web Server] Docker integration - path to the docker-compose.yaml Sep 21, 2020
@ro0NL
Copy link
Contributor
ro0NL commented Sep 21, 2020

i think i created a similar issue in symfony/flex: symfony/flex#534

@ro0NL
Copy link
Contributor
ro0NL commented Sep 21, 2020

i figure your issue relates to https://github.com/symfony/cli actually :)

but we need the same path for symfony flex and its local server.

@Plopix
Copy link
Contributor Author
Plopix commented Sep 21, 2020

oh yes shoot I should put the Issue there. just did and I am closing that one.

@Plopix Plopix closed this as completed Sep 21, 2020
@Plopix
Copy link
Contributor Author
Plopix commented Sep 21, 2020

https://github.com/symfony/cli/issues/323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0