Runing composer in a docker-compose configuration #2137
Unanswered
nadar
asked this question in
Questions & Problems
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Q:
I am workingn with the docker-compose.yml that I founded in the kikstart repo.
All works fine but I notice that composer it is in another container and also that after it runs the composer install command the continer dies.
Is that normal ?
I am trying to run some composer commands but i can’t find the way.
A:
That is correctly, the composer command is seperated inside a container based on the composer dockerfile and after installing the container and running its command, it will shutdown. (docker compose will run
command: composer install
when you do docker-compose up, see the docker-compose.yml)In order to run composer commands try this:
Where
install
is the command you like to run, for examplecomposer update
would be:Does that answer your question?
Beta Was this translation helpful? Give feedback.
All reactions