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

beginnerninja's avatar

Using Laravel Sail to deploy to Digital Ocean docker droplet?

Hi,

I just watched the fantastic Laravel Sail video (https://laracasts.com/series/whats-new-in-laravel-8/episodes/12) and I was wondering - how would I use Sail deploy a Laravel app to production using a Digital Ocean Docker droplet? (I've posted this question on the video but then realized it might make better sense to ask here)

Recently I used Paul Redmond's book about docker to deploy my app to a Digital Ocean docker droplet. It went ok but it was definitely so silky smooth as Sail seems to be.

I'd appreciate any thoughts/ideas about this.

0 likes
6 replies
beginnerninja's avatar

Thanks @bugsysha - that is a very helpful video. In Redmond's book he had a set of settings for Nginx for production...I'll have to figure that out.

bugsysha's avatar

You are very welcome. If that helps to solve the issue, please consider marking it as "Best Answer". Thanks.

1 like
Ajvanho's avatar

When you hover reply, which you like and is the best answer to the question you have button Set Best Answer, press it! :)

1 like
franklin8619's avatar

@bugsysha I had a hard time following this video as there were a lot of differences between my standard laravel 9 project and what was shown in that video. The folder structure was very different, and the docker-compose file was not the default sail configuration that came with the install.

I've only been using laravel and php for a few days though..

bugsysha's avatar

@franklin8619 feels like there are too many differences. I suggest you open a new thread to get some help. Make sure you provide what those differences are so it is clear.

Please or to participate in this conversation.