Answer the question
In order to leave comments, you need to log in
How to properly deploy an application with docker?
Working with docker, I ran into a situation where I need to take a certain series of actions in order to deploy the project.
For example:
- build docker images (docker-compose build)
- install extensions (composer install)
- grant rights to certain log folders, etc.
In general, carry out a series of manipulations and finally launch the application. At first, I thought to write all these manipulations in containers so that everything is done during the build. But immediately stopped on "composer install". After a lot of googling, I came across mentions that this is not necessary.
I'm coming to the conclusion that I want to write scripts for this whole thing, but maybe I'm missing something or doing it wrong.
Tell me, please, where to dig?
Answer the question
In order to leave comments, you need to log in
- build the project
- install extensions
- build the image
then run it and keep the logs in volume, or send to the host or driver for logging to prescribe.
but there's a gap between building the image and running the image. and how the image will be run should not be specifically specified when building the image.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question