The Laravel/Sail Docker development environment works great on my local computer. However I can’t figure out how to push this to the server. I am use to git repositories and am new to docker.
After pushing my local image (sail-8.0/app) to docker hub, I have pulled it to a DO/Docker server. Running the image is creating lots of errors.
While I find lots of tutorials on how to create a Docker image, I am not finding much on deploying the image to a server. It seems like I need to create a database and change some settings specific to the server. Sail on my local computer has a database, redis, and mailhog container in addition to the app container. I can’t even find links saying this is a bad idea. The Laravel/Sail website does not talk about deployment to the server. Please point me to the correct reosurce/guide.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Hi there @dmh,
I believe that Laravel Sail is only used for local development.
Once you are ready to deploy your application to production, you could do one of the following:
https://www.digitalocean.com/community/tools/larasail
Let me know if you have any questions. Regards, Bobby