Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to deploy a Laravel App from local Laravel/Sail Docker Image?
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.
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.×