Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose options? #76

Closed
dabeeeenster opened this issue Nov 3, 2018 · 13 comments
Closed

Docker compose options? #76

dabeeeenster opened this issue Nov 3, 2018 · 13 comments

Comments

@dabeeeenster
Copy link

It would be great to have installation options that included:

  • docker
  • heroku/dokku
@freescout-helpdesk
Copy link
Contributor

Yes. We are planning to do it.

@tiredofit
Copy link

I would be happy to build a Docker image using one of my bases, I just found out about this project via HackerNews and am eager to see it blossom.

@tiredofit
Copy link

Here is an initial release for Docker that will start an instance up with no input providing you have set appropriate environment variables.

https://github.com/tiredofit/docker-freescout

@freescout-helpdesk
Copy link
Contributor

freescout-helpdesk commented Nov 4, 2018

@tiredofit Great. Thank you. We'vel added https://github.com/tiredofit/docker-freescout link to the project's readme.

@Lewiscowles1986
Copy link

Quick question regarding this. From the freescout side does it require SSL? I Noticed the @tiredofit version is for the web and in example sets up letsencrypt, but I was wondering if from the FreeScout side small businesses could run it over intranet using provider encrypted email so they don't need to bother with TLS?

@tiredofit
Copy link

I can answer this after walking through the code yesterday. It doesn't require SSL, you could run it unencrypted via Port 80 if you'd like. If you were installing on a machine without Docker, simply following the Installation Guide in the Wiki will get you up and running. If you wanted to assign a SSL Certificate to it to listen on Port 443 would be fairly easy as well. The only SSL setting I could find inside of the application was to accomodate for Reverse SSL Proxies where the service was running on port 80 inside your network, and you wanted it to return (https) urls instead of HTTP.

@ptman
Copy link

ptman commented Nov 4, 2018

@tiredofit Thank you for the dockerfile and images.

@freescout-helpdesk I would suggest grabbing the freescout -namespace on docker hub and publishing official images there.

@dabeeeenster
Copy link
Author

dabeeeenster commented Nov 4, 2018

Im getting an error with the docker image when trying to retrieve IMAP email in both Gmail and Yandex.

iconv(): Wrong charset, conversion from `UTF-8' to `UTF-8//IGNORE' is not allowed

Looks like this issue?

docker-library/php#240

@tiredofit
Copy link

tiredofit commented Nov 4, 2018

I've just updated a new release to Docker Hub that adds gnu-libiconv which should resolve the issue, please let me know if not the case.

@Laykou
Copy link

Laykou commented Nov 6, 2018

Hi,

I've just installed the new version but still got the error:

root@staging2:/data/helpdesk# docker-compose pull
Pulling freescout-app (tiredofit/freescout:latest)...
latest: Pulling from tiredofit/freescout
Digest: sha256:9081218823d778bb66876427897e2634ef03a168d2ac22c8c68ccbb9c7cdc6d4
Status: Image is up to date for tiredofit/freescout:latest
Pulling freescout-db-backup (tiredofit/db-backup:latest)...
latest: Pulling from tiredofit/db-backup
Digest: sha256:2607102fc522eb3acecc8596d3244924a0b3dfbf7f63d90491f17dacdc783a98
Status: Image is up to date for tiredofit/db-backup:latest
Pulling freescout-db (tiredofit/mariadb:latest)...
latest: Pulling from tiredofit/mariadb
Digest: sha256:e5c5e80dae2ae192ce7d42ee73df23a7dbda42e0637f204682fd8cbf381e4c30
Status: Image is up to date for tiredofit/mariadb:latest


root@staging2:/data/helpdesk# docker exec -it helpdesk_freescout-app_1 /bin/bash

bash-4.4# sudo -u nginx php /www/html/artisan schedule:run
Running scheduled command: '/usr/bin/php7' 'artisan' freescout:fetch-monitor > '/dev/null' 2>&1
Running scheduled command: '/usr/bin/php7' 'artisan' freescout:fetch-emails > '/www/html/storage/logs/fetch-emails.log' 2>&1

bash-4.4# cat /www/html/storage/logs/fetch-emails.log
[2018-11-06 16:08:02] Mailbox: SoftPoint Support
[2018-11-06 16:08:02] Folder: INBOX
[2018-11-06 16:08:02] Error: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-8//IGNORE' is not allowed; File: /www/html/vendor/webklex/laravel-imap/src/IMAP/Query/Query.php (189)

@tiredofit
Copy link

Thanks for verbose report. I will build an alternate image using debian. Will take a day as I need to juggle my day job.

@tiredofit
Copy link

Found the problem. I've pushed a new release to my repository and a new build should appear on Docker Hub shortly. This new image is built in a more traditional fashion and introduces log rotation to the freescout logs, along with moving them alongside where the nginx and php-fpm logs exist.

There is also a companion docker-compose-no-proxy.yml in the examples folder for those not using a reverse proxy/load balancer.

@taoeffect
Copy link
Contributor

taoeffect commented Nov 29, 2018

I'm encountering this iconv(): Wrong charset, conversion from 'UTF-8' to 'UTF-8//IGNORE' not allowed error when attempting to fetch IMAP mail over port 993 with "Encryption" set to SSL or TLS... is this the same or something else?

FYI, I'm not using the docker image, but a normal install.

EDIT: Managed to fix this by following the example given in the Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants