-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Mention COMPOSE_FILE and COMPOSE_PROJECT_NAME #14264
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
Conversation
@fabpot could you please review these proposed changes? Thanks! |
setup/symfony_server.rst
Outdated
@@ -357,6 +357,25 @@ When Docker services are running, browse a page of your Symfony application and | |||
check the "Symfony Server" section in the web debug toolbar; you'll see that | |||
"Docker Compose" is "Up". | |||
|
|||
If your Docker Compose file is not at the root of the project you can pass that information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
, you can pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
setup/symfony_server.rst
Outdated
@@ -357,6 +357,25 @@ When Docker services are running, browse a page of your Symfony application and | |||
check the "Symfony Server" section in the web debug toolbar; you'll see that | |||
"Docker Compose" is "Up". | |||
|
|||
If your Docker Compose file is not at the root of the project you can pass that information | |||
to the Symfony Server. It works exactly as docker-compose. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly the same as for docker-compose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the double tick here too. Done
setup/symfony_server.rst
Outdated
If your Docker Compose file is not at the root of the project you can pass that information | ||
to the Symfony Server. It works exactly as docker-compose. | ||
|
||
Let's say you have your `docker-compose.yaml` file under a `docker/` directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use double ticks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I made the changes @fabpot. Thanks |
setup/symfony_server.rst
Outdated
If your Docker Compose file is not at the root of the project, you can pass that information | ||
to the Symfony Server. It works exactly the same as for ``docker-compose``. | ||
|
||
Let's say you have your ```docker-compose.yaml`` file under a ```docker/`` directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have used triple ticks here twice :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...sorry
setup/symfony_server.rst
Outdated
|
||
COMPOSE_FILE=docker/docker-compose.yaml COMPOSE_PROJECT_NAME=project_name docker-compose up -d | ||
|
||
And if you are using the same env variables with the Symfony CLI, things will work. For instance: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment instead of env?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
setup/symfony_server.rst
Outdated
|
||
COMPOSE_FILE=docker/docker-compose.yaml COMPOSE_PROJECT_NAME=project_name symfony var:export | ||
|
||
If you have more than one docker-compose files you can provide them all separated by `:` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be double ticks too here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, I think I had to.
Sébastien thanks for this contribution! (and thanks to reviewers too). Please note that we reword some bits while merging to make the explanation a bit more concise. Thanks! |
https://github.com/symfony/cli/issues/323