socioboard / Socioboard-5.0

Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
http://www.socioboard.org
Other
1.07k stars 352 forks source link

Laravel docker container #239

Open EngBadr opened 2 years ago

EngBadr commented 2 years ago

Hello, I tried to install Laravel container and everything was fine used version : bitnami/laravel Socioboard version : Socioboard-5.0 deployment approach :

  1. download "docker-compose.yml"
  2. copy "docker-compose.yml" under Socioboard-5.0\socioboard-web-php
  3. docker-compose up
  4. inside the container I access the bash in my \socioboard-web-php container
  5. docker -it socioboard-web-php_container bash
  6. Inside application container I renamed env.example file to .env
  7. Run php artisan key:generate
  8. Access http://localhost:3000 every thing was fine
  9. Now what ???

Question 1: Where is my management dashboard and how I manage the system

Question 2: I still do not touch these environment vars.. In fact, the deployment approach for node and other APIs was superhard. I hope this explained easier API_URL= API_URL_FEEDS= API_URL_PUBLISH= API_URL_UPDATE=

can these variables managed through docker-composer.yml file like MYSQL ENV values ..........

According to bitnami/laravel image description the docker-composer.yml will override the default bootstrap and laravel installation by using the source directory of docker-composer.yml I believe containerization of this solution will solve many deployment issues. I hope there is a plan to dockize it.

Thank you

sureshbabu1995 commented 2 years ago

Hi @EngBadr

I'll be adding the more detailed setup ( ReadMe ) soon for the latest updated code, for now

you need to run the node services (API part)

APP_URL =http://localhost:1000/ - node user will run in 1000 port API_URL_FEEDS=http://localhost:1001/ API_URL_PUBLISH=http://localhost:1002/ API_URL_UPDATE=http://localhost:1003/ etc, if you change ports then change values over here as well.