Back

Is it good to use sail on production, if no then why ?

1 β€’ β€’

183

β€’
β€’
In response to @Samir480

No, sail is designed to be used in development only. It has a large image builds, contains development related tooling which is not secure. Also it does not use a real http server like nginx.

If you want to deploy your laravel app using docker then you should take a look at images provided by serversideup

1 β€’ β€’

91

β€’
β€’
  • No matching results...
  • Searching...

/ 1000

Poll Options

Thank you, for the explanation, Can we create dockerfile from sail ?
For example if I have dev app created by using Sail and then I want the same env on server so does sail help me to create the same or do I have create it by my own ?
If Sail does not help us to create dockerfile then I have create it manually

1 β€’ β€’

45

β€’
β€’

Technically you can create a new image using sail as a base image but, as I mentioned, it is a heavy and development oriented image so it might be vulnerable and slow in prod.

The following image is more suited to be used in both dev and prod environments

serversideup.net/open-source/docker-php

1 β€’ β€’

26

β€’
β€’

Thank you for the explanation and image reference πŸ™Œ @ilyosjon

β€’ β€’

11

β€’
β€’