This is dockerized version of Live Helper Chat. It includes these images
web- nginx servicephp- php-fpm servicecobrowse- cobrowsing running NodeJS servicephp-cronjob- cronjobs running servicephp-resque- php-resque worker running servicenodejshelper- NodeJS Helper NodeJS running serviceredis- Redis servicedb- Database service
-
Checkout the repository
-
Run
cd docker-standalone -
Copy
.env.defaultto.env -
Edit
.envfile and changeLHC_SECRET_HASHto any random string -
Database default settings if you don't change those in
.envfile.- Host -
db - Database name -
lhc - Database username -
lhc - Database password -
lhc
- Host -
-
For standard version without NodeJS plugin run
- Run
install.shthis will checkout Live Helper Chat and required extensions - Run
docker-compose -f docker-compose-standard.yml pull && docker-compose -f docker-compose-standard.yml up
- Run
-
For version with NodeJS plugin
- Run
install-nodejs.shthis will checkout Live Helper Chat and required extensions - Run
docker-compose -f docker-compose-nodejs.yml pull && docker-compose -f docker-compose-nodejs.yml up
- Run
-
Navigate to localhost:8081 and follow install instructions.
At first install steps you might need to run these commands to change folders permissions.
docker exec -it docker-standalone_web_1 chown -R www-data:www-data /code/cache
docker exec -it docker-standalone_web_1 chown -R www-data:www-data /code/settings
docker exec -it docker-standalone_web_1 chown -R www-data:www-data /code/varor change permission of these folders
livehelperchat/lhc_web/cache
livehelperchat/lhc_web/settings
livehelperchat/lhc_web/var
Edit .env file and set LHC_PUBLIC_PORT and LHC_NODE_JS_PORT port to 80
That's up to you. You can have in host machine runing nginx and just proxy request or tweak images/docker files I provided. You should play around with web service.
You have to edit back office mail settings and use SMTP.
- Go to
Settings -> Live help confgiuration -> Chat configuration -> (Screen sharing)and- Check
NodeJs support enabled - In
socket.io path, optionalenter/wsnodejs/socket.io
- Check