A
A
Alexander Pankov2021-03-01 14:38:03
Laravel
Alexander Pankov, 2021-03-01 14:38:03

How to properly install laravel inside docker?

Hello

, the situation is this: there is a working machine, it doesn’t matter what OS, it’s completely empty, they don’t have php or composer, respectively
, I put docker on it and I want to install the laravel project

, I have a project folder on LAN and there is a structure inside
- doker
- docker-compose.yml

and that's all (I mount it in var/www containers)
I want to install Lara
and I get an error in response, no way, he needs a strictly empty folder

. What approach do you use in such cases?
I want to have a folder with the project and docker instructions directly, upload all this to the repository and install it on another machine, having only docker on the host.

603cd1bda52be788532622.png

Well, or on the host I have php70
and the new project is 74 or 80
it turns out that I need to go inside the container and install it from there,
but I can’t because there are at least 2 docker files I

now install

in a subfolder: namely var/www/poject.local/
then I go to the docker config and there I edit all the paths with var/ www/ to var/www/poject.local/

or

I also install it in a subfolder,
go to it (all this is inside the container)
and move up mv * .[^.]* ..
then you don’t need to change the configs

everything works, but somehow then crutch

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2021-03-05
@derwin

https://github.com/EvilFreelancer/dockavel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question