Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HnkoraP88's avatar

How to create the dockerfile?

Hi,

I got instructed to create a single dockerfile in the root of the project, but also got a tip to use the laradock as starting point.

How can I do this? The only way so far I know to create an docker environment is to run it with docker-compose command

0 likes
3 replies
tisuchi's avatar
tisuchi
Best Answer
Level 70

@hnkorap88

No, Dockerfiles are single containers (services) by design as I know so far. Laradock provides a docker-compose file that references multiple dockerfiles. However, you could create a smaller docker-compose file that only starts the containers you need (let's say a webserver with php, a database server and redis).

Laradock ships with a way to many containers in docker-compose, that is why the tutorial tells you to specify which containers you want to run.

Check more: https://laradock.io/getting-started/

docker-compose up -d nginx mysql

But if you specify a minimal docker-compose.yml, you just can type

docker-compose up -d

without any additional arguments

7 likes
lagcodpairs's avatar

Olpair.com/pair is a server mistake that outcomes in intruding on the client to stream their preferred games, motion pictures and Tv shows which are given on the Openload pair server. All things considered, it is a server which enables individuals to observe all motion pictures, sports channels, Tv appears and a lot more on the web. We can say these are pilfered content which is unlawful and against law. It is much the same as other additional items https://psychedelicsurfclub.com/olpair/

4 likes

Please or to participate in this conversation.