R
R
Romi2021-04-19 10:08:58
Docker
Romi, 2021-04-19 10:08:58

Can Laradock be used like regular Docker? Those. package the whole project somehow and give it in one container?

I use Laradock (docker-compose) purely for development - handy for getting my custom stack up quickly.

And I give the codes through git.

But then I thought:

- What if you can somehow pack everything into a container (I'm not very familiar with Docker), so that the customer can launch the project with a couple of mouse clicks if he has Docker installed.

How can this be done at all?

Again, we are talking about a project executable in Laradock (docker-compose).

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2021-04-26
@Tiasar

You create docker-compose.yml, write down all the services you use and the connections between them, and how they use ENV variables. For each service described in docker-compose.yml, specify the Dockerfile in which you specify which image to use + various instructions, for example, git clone of your codes, where to download the DBMS initialization scripts (it is convenient to use docker-entrypoint-initdb.d to initialize the database), copying configs into a container and so on...
You write all your secret data (passwords, etc.) in an .env file that you give to the customer via a secure communication channel.
That's all, you give the customer an empty project, but with all the instructions written in docker-compose.yml and Dockerfile for containers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question