Z
Zerops13mo ago
Puub

PHP 8.3 / Laravel 11 support

I was trying to setup our Laravel project, it runs on the latest PHP/Laravel version but I could not find it in the services list. I think I have to set up a Ubuntu container?
21 Replies
Aleš
Aleš13mo ago
@Jan Saidl can we add 8.3?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Jan Saidl
Jan Saidl13mo ago
Hi, I'm working on it. 🏃‍♂️
Jan Saidl
Jan Saidl13mo ago
PHP 8.3 + nginx released and ready to build and deploy. 🎉
No description
Aleš
Aleš13mo ago
I'll send you some tips / examples how to run Laravel app tomorrow, it's just couple small things thats needs changing, like outputting logs to syslog instead of files
Puub
PuubOP13mo ago
Wow that's so cool, thank you guys!
Puub
PuubOP13mo ago
I got these errors when I try to create the service, with a blank dialog
No description
Puub
PuubOP13mo ago
Yay it works now 🙂
Jan Saidl
Jan Saidl13mo ago
I'm sorry, I only made the import option and forgot to create the service directly. It's fixed now.
Aleš
Aleš13mo ago
@Puub @sylverix I'll have a laravel 11 example with laravel jetstream ready today it showcases: - filesystem / upload to our object storage - sessions and cache in redis - postgres db - idempotent migrations - smtp mock service (Mailpit) for local development - healthchecks @Puub @sylverix give it a try https://github.com/zeropsio/recipe-laravel-jetstream
Puub
PuubOP13mo ago
Whew I pasted the import script and it just worked, super easy! I like the setup with seperated containers
Aleš
Aleš13mo ago
it could be improved still, some of the env variables could be in zerops.yml and we are also working on an improvement where nginx config can be just pointing to a path, instead of writing it directly in the import I'll also list of the manual changed I've had to make to make it work, there are some laravel quirks.. but it should be a decent starting point 🙂 btw I also made this today https://github.com/zeropsio/recipe-umami it's a recipe for this https://umami.is self hosted, privacy / gdpr friendly google analytics alternative
Puub
PuubOP13mo ago
Interesting! I want to host them all but the only downside is that it's somewhat pricy for amateur/hobbyists due to the minimum of 0.5gb/1gb ram per container (after the generous free credits will expire) 😅 But I can imagine that was decided to establish a profit margin
Michal Saloň
Michal Saloň13mo ago
You can go as low as 256 MiB of RAM per container, but we had to increase minFree (how much free RAM container has to have before it starts scaling up/down) to 256 MiB due to some issues with Ubuntu. That is why even with 256 MiB container always scales to 512 MiB. So it is currently just a technical limitation that should be fixed some time soon (or at least users should be given option to set MinFree themselves).
Puub
PuubOP13mo ago
Aah good to know, thanks
Michal Saloň
Michal Saloň13mo ago
Also, the 1 GiB you might think is a minimum is just a setting in the recipe. You can go into the UI and change Automatic Scaling and same with your own imports, you can set different values.
Aleš
Aleš13mo ago
yea, we can't quite afford to offer a free tier, the way each project is set up with all the dedicated balancers and core containers it's quite a lof of resources, but compared to say render.com, fly.io, railway.app and other popular moderm paas: - resources costs around half of you pay on other services - there are no resources packages with jumps from 2 to 4 to 8 gb with fixed amount of cores, our scaling is fine grained (0.25 GB RAM, 0.5 GB Disk, 1 core) - there are no "tiers", you don't pay for "seats", you pay $5/m flat per one project with all the features unlocked (if you really want to save on costs, you can put all your projects and apps under a single Zerops project) + for resources your services use so it's not free, it's not quite as cheap as some contabo/hertzner VPS, but we try our best to make the pricing afforable, fair, transparent and dev-friendly
Puub
PuubOP13mo ago
Yeah understandable, sounds well thought out
Aleš
Aleš12mo ago
fyi @Puub, we've actually decided to lower the pricing by some 25%-40% before:
1 shared CPU (1:10) ....... $1/m
1 dedicated CPU ........... $10/m
0.25 GB RAM ............... $1/m
0.5 GB Disk space ......... $0.1/m
0.5 GB object storage ..... $0.01/m
1 shared CPU (1:10) ....... $1/m
1 dedicated CPU ........... $10/m
0.25 GB RAM ............... $1/m
0.5 GB Disk space ......... $0.1/m
0.5 GB object storage ..... $0.01/m
now:
1 shared CPU (1:10) ....... $0.6/m
1 dedicated CPU ........... $6/m
0.25 GB RAM ............... $0.75/m
0.5 GB Disk space ......... $0.1/m
0.5 GB object storage ..... $0.01/m
1 shared CPU (1:10) ....... $0.6/m
1 dedicated CPU ........... $6/m
0.25 GB RAM ............... $0.75/m
0.5 GB Disk space ......... $0.1/m
0.5 GB object storage ..... $0.01/m
Aleš
Aleš12mo ago
and we also implemeted advanced scaling setting, that will allow you to keep services even on 250 MB RAM
No description
Puub
PuubOP12mo ago
Woah that's amazing! Now I'll definitely move my VPS to Zerops services

Did you find this page helpful?