jikan-me / jikan-rest

The REST API for Jikan
https://docs.api.jikan.moe/
MIT License
425 stars 270 forks source link

Add support for running the API in container #261

Closed pushrbx closed 1 year ago

pushrbx commented 2 years ago

As a self-hoster I'm interested in running the API in a container. Currently this is troublesome, because you have to run multiple containers to accommodate the web server, running of scheduled tasks and queue workers (scout / cache).

Or you have to put together a container image which runs multiple processes (e.g. with s6).

Ideally we'd like to have a container image which does all of that. I did some research and I've found roadrunner application server, which can do these things. With it the Jikan API can run be scaled vertically easily if needed. Also found that Laravel has Octane which supports RR.

Rough setup idea with RR:

Reference:

We also have discussed octane on discord. Unfortunately Octane is not compatible with Lumen.

@irfan-dahir @nerg4l What do you think? Am I over-complicating this?

pushrbx commented 1 year ago

Progress on this: We have a working system now, but it builds on top of the changes of #189 . Task list: