Closed frenchvandal closed 4 years ago
@frenchvandal Thank you for your PR! I'm just a simple user with Docker so I can't help you with that. Maybe you should have a look at Laradock, it's a docker config for Laravel. It can help you to create your docker config.
FYI, I use these env to run Shaark. | Env | HTTP | PHP | DB | Redis ext | Jobs driver |
---|---|---|---|---|---|---|
dev |
Apache | PHP 7.2 | MySQL 5.7 (pdo_mysql) | phpredis | in database | |
prod |
Apache + nginx proxy | PHP 7.1 | MariaDB 10.2 | predis | in redis |
Thank you 😄 I will check this info.
I made some quick tests with my new install. Everything seems functional, except:
I love Shaarli but I do not think I can go back to it now that I have found out about Shaark!
@MarceauKa do you happen to have a SVG version of the Shaark icon?
Can you give me the 500 error you get? (see it in storage/logs/laravel.log
).
Nope, I don't have the logo in svg format :(
Here it is: laravel-2020-03-29.log
I have noticed another thing: when I add an album with a simple image, after I hit Send, I get a server error
message. Though if I leave and go back to the front page, the album is published (so each time I hit Send, the message shows up and the image is published)
Here are the logs.
On a side note, I did not find the pattern yet but the upload of images sometimes fail: logs
@MarceauKa is it possible to share with me an example of Apache prod conf? I am trying to reverse proxy with Caddy (similar to nginx) but something is wrong with Apache, when I hit the URL I got:
Forbidden You don't have permission to access this resource.
Apache/2.4.38 (Debian) Server at normco.re Port 80
I am not familiar with Apache. I put all the content of the /shaark
folder in /var/www/html
Thank you a lot!
@frenchvandal Just put the document root to /public
Thank you @MarceauKa eventually I managed directly with my web server and without Apache.
I have some issues for displaying images posted with albums. I can see they are stored correctly in their storage path, but they get a 404 error when displayed in a browser.
Is there any specific directive to deal with images in nginx or Apache?
Call php artisan storage:link
as mentionned in the doc. All uploaded files are stored outsite document root. This command will create a symlink in the public path to the storage folder.
Thanks man, I actually did the command during install. I am so dumb, the symlink was broken because I change afterwards the root path of Shaark inside the container.
I managed to get a working dockerized Shaark with MariaDB (but includes manual steps from the user). I still have 2 issues to solve before pushing anything: getting mail sent and a functional Redis archiving.
Hi @frenchvandal, did you get around to fixing this? would you have a copy of your changes anywhere online, or maybe steps to reproduce? I'd really love to make it work 😄
I decided to create this spin-off not to pollute #69
Despite all the tips provided on the former issue, I have not managed to install Shaark with MariaDB so for now I stick to SQLite.
Here is my Dockerfile:
My
docker-compose.yml
file:(firefly is the default network of all my containers)
A few comments about things I added but not sure really sure if they are actually needed:
The image builds successfully and Shaark is up when I hit the URL.
Globally it is functional, except a few things:
server error
message, though when I go back to the front page, the new album is actually publishedserver error
message for medias andPuppeteer dependencies not installed, run npm install @nesk/pupheteer
--no-save (which is done in the Dockerfile???)Any feedback on my Dockerfile is welcome, and obviously any part of it can be reused for the repo.