Not especially for laravel, but this is how I develop my express + nuxt app:
I have a root that contains server and client folders. Inside each folder I have a dockerfile containing the build process. At root level I have a docker-compose file with db, volumes, server and client. For the .env you either push an example file, or pass it around with docker-compose at build time.
I'm developing in a windows 10 machine now, but I run linux containers inside docker. I hope this helps.
Generally speaking you should not push your .env file, instead a .env.example and make your proper .env file per dev machine. Can you tell us more about db conflicts?
Wow, Docker is pretty hard to setup. Is it really that complicated to get started? I can't even get the example to get running without permission issues lol.
It shouldn't be hard to set up. The only tricky stuff to do is permissions as you mentioned.
In windows under shared drives you have to enable your drive with username, password pairs, after that restart docker. To test run the example command shown.
In unix systems you have to add yourself to docker group.
If you still have problems feel free to send a DM on twitter
Am I going crazy or is there a required step to logout your current session for Docker to install and run correctly? I was able to make it work(?) after a quick login/logout lmao
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
TL; DR: docker and docker-compose
Not especially for laravel, but this is how I develop my express + nuxt app:
I have a root that contains server and client folders. Inside each folder I have a dockerfile containing the build process. At root level I have a docker-compose file with db, volumes, server and client. For the .env you either push an example file, or pass it around with docker-compose at build time.
I'm developing in a windows 10 machine now, but I run linux containers inside docker. I hope this helps.
Generally speaking you should not push your .env file, instead a .env.example and make your proper .env file per dev machine. Can you tell us more about db conflicts?
Wow, Docker is pretty hard to setup. Is it really that complicated to get started? I can't even get the example to get running without permission issues lol.
It shouldn't be hard to set up. The only tricky stuff to do is permissions as you mentioned.
In windows under shared drives you have to enable your drive with username, password pairs, after that restart docker. To test run the example command shown.
In unix systems you have to add yourself to docker group.
If you still have problems feel free to send a DM on twitter
Am I going crazy or is there a required step to logout your current session for Docker to install and run correctly? I was able to make it work(?) after a quick login/logout lmao