thybag / RPGCampaignManager

An Opensource RPG Campaign Manager and World Building tool.
3 stars 7 forks source link

Setup Docker container #2

Open thybag opened 3 years ago

thybag commented 3 years ago

Setup a basic docker container for RPGCampaignManager to make self hosting it even easier. Ideally an all in one container (php/mysql + code itself).

.env image storage & db should be writable outside for persistence.

Spiker1992 commented 3 years ago

@thybag what are the requirements? i.e. are you using MySQL 8? and so onwards.

thybag commented 3 years ago

Hi Vlad,

The codebase runs Laravel, so from a PHP side I suspect; https://laravel.com/docs/8.x/installation#server-requirements + GD for image resizing. SQL wise, locally I've been using MariaDB - although MySQL 8 should also work.

I suspect it'll also need either apache/nginx or something to serve it. (Built frontend assets should be in codebase already so hopefully don't need any depts)

Spiker1992 commented 3 years ago

@thybag what about session/cache storage, are you using Redis or something else?

thybag commented 3 years ago

Currently just using the filesystem driver for sessions/storage. Apps still fairly basic at the moment so no queues/caching got on as of yet either.

Spiker1992 commented 3 years ago

Ok, cool.

Also, I am not quite sure what it is that you are after with image storage. This is because storage is something that is defined within an application itself and might not necessarily be on the same server or cluster.

I have set up a basic environment with Redis, MySQL 8, PHP 7.4, and Nginx. I will try to test it out tomorrow and add a PR afterwards.

thybag commented 3 years ago

re: image storage was more just making the apps storage directory a volume {install}/storage/app along with the db filesystem, so that you can rm/recreate the container without losing all the data etc.

Cheers for your help 👍