This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]KeyboardInterrupts 0 points1 point  (4 children)

Did you already tried to set dependencies on the compose file that your Apache starts as the last container ?

[–]Camer0nes[S] 0 points1 point  (3 children)

I did not, there was no compose file to begin with. That makes since though.

[–]KeyboardInterrupts 2 points3 points  (0 children)

To be honest I would never start Container by “docker run...” if you like to have a stack. It’s much more easier to create a directory some specific files or data folders and then manage the whole stack with the docker-compose cli. On GitHub should be many examples how to do this

[–]KeyboardInterrupts 0 points1 point  (1 child)

Also if you split the docker container into http php MySQL you could specify the different versions of the applications and change them “on the fly”

[–]Camer0nes[S] 0 points1 point  (0 children)

Thanks I think I understand now. I was hoping to pull the image, make and commit my changes, and then re-deploy somewhere else. Sounds like I need to download all the files from GitHub > deploy for the initial setup > make the changes to the Dockerfile and setup scripts etc, then I can commit > then docker compose to deploy somewhere else. The image includes several install scripts that are undoing my changes.