by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:22
    trustidkid commented #1668
  • 14:19
    trustidkid commented #1668
  • 13:12
    renoirtech commented #1668
  • 09:38

    Mahmoudz on gh-pages

    Deploy laradock/laradock to git… (compare)

  • 09:36

    bestlong on master

    update support phalcon4.X versi… fixed Merge pull request #2582 from k… (compare)

  • 09:36
    bestlong closed #2582
  • 09:35

    bestlong on master

    Remove deprecated gitlab ci file Merge pull request #2609 from t… (compare)

  • 09:35
    bestlong closed #2609
  • 08:59

    bestlong on master

    update traefik to v2.2 update documentation for Traefi… change port variables from ngin… and 1 more (compare)

  • 08:59
    bestlong closed #2613
  • 08:59

    Mahmoudz on gh-pages

    Deploy laradock/laradock to git… (compare)

  • 08:57

    bestlong on master

    update netdata image to the lat… Merge pull request #2614 from m… (compare)

  • 08:57
    bestlong closed #2614
  • 08:56
    bestlong labeled #2592
  • 08:55
    bestlong commented #2592
  • 07:12
    jamesyu89 commented #2238
  • 07:03
    jamesyu89 commented #2238
  • 07:01
    jamesyu89 commented #2238
  • 04:22
    edwinhuish commented #2238
  • 03:09
    jamesyu89 commented #2238
Howard Kim
@rotaercz
Ah, ok. Thanks!
Aidan Casey
@aidan-casey
Then, if you want to look into how docker sets up that data folder for MySQL, you can pop open the docker-compose.yml file in the laradock folder and scroll down to the section that looks like:
### MySQL ################################################
    mysql:
      build:
        context: ./mysql
        args:
          - MYSQL_VERSION=${MYSQL_VERSION}
      environment:
        - MYSQL_DATABASE=${MYSQL_DATABASE}
        - MYSQL_USER=${MYSQL_USER}
        - MYSQL_PASSWORD=${MYSQL_PASSWORD}
        - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
        - TZ=${WORKSPACE_TIMEZONE}
      volumes:
        - ${DATA_PATH_HOST}/mysql:/var/lib/mysql
        - ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
      ports:
        - "${MYSQL_PORT}:3306"
      networks:
        - backend
That volumes section is taking the DATA_PATH_HOST in the .env file and telling the docker container to pass through all the data in /var/lib/mysql to the DATA_PATH_HOST/myqsl folder.
So if you bring your container down and then bring it back up OR bring up another MySQL container that points to that, you will be all set.
Howard Kim
@rotaercz
Man, thank you so much
Let me just get the last part straight
Tim Habersack
@timbotron
Yes, many props to you @aidan-casey . Way to help out the community so much!
Howard Kim
@rotaercz
I don't quite understand this part:
```
${DATA_PATH_HOST}/mysql:/var/lib/mysql
${DATA_PATH_HOST}/mysql:/var/lib/mysql
${DATA_PATH_HOST} is a variable for getting the string DATA_PATH_HOST.
is the part after : a docker tag?
Aidan Casey
@aidan-casey

Thanks guys. It's my pleasure.

Anything on the left side of the : is local to your host. Anything on the right is to do with the container.

So in this case, it is tying C:\users\{{your_username}}\.laradock\data\mysql to the directory /var/lib/mysql in the mysql docker container.
Howard Kim
@rotaercz
Ah, I see so it would create a file? or folder? named "mysql" in the DATA_PATH_HOST folder?
And the /var/lib/mysql is where it is in the container?
Aidan Casey
@aidan-casey
It is creating a folder that stores all your databases. Yup, /var/lib/mysql is in the container.
Howard Kim
@rotaercz
Got it!
Man, you're amazing. Thanks again! :)
I'm going to go try all this out
Aidan Casey
@aidan-casey
So basically it's creating a shared space that the container and host can both write to. It's actually also doing this for your laravel app as well. When you enter docker-compose exec workspace bash, you are seeing those files from the container side which stores them in /var/www.
We changed the location of that in the env file when we modified APP_CODE_PATH_HOST
Anytime! I am going to sign off for tonight, but I will be around. :)
Howard Kim
@rotaercz
thumbs up
Aidan Casey
@aidan-casey
Have fun playing! You'll get it eventually if you stick to it. It isn't always easy to persevere but it is worth it.
Howard Kim
@rotaercz
Yeah, I believe it. Will do!
Pandu Yudhistira Wicaksono
@theyudhiztira

Hi everyone I’m having problem with the php-worker.

What i tried to do is merging multiple pdf into one single pdf.
Here is the library I used to do a pdf merging : lara-pdf-merger

I saw on the php-worker Dockerfile that the worker is using php alpine. But i can also enable the GD library through the env, set the INSTALL_GD to true referring to #2516 , but instead of merging it what i got is a blank pdf and also it changed my source pdf to a blank page as well.

But if i run the queue manually through the workspace it works well.

Pandu Yudhistira Wicaksono
@theyudhiztira
Anyone have an idea about my problem?
Kevin Jackson
@laidbackwebsage
Could someone please explain -- in detail -- what exactly the "DOCKER_HOST_IP" is, and why the default value (10.0.75.1) isn't serving the apache2 container? (I've been at this for a week and a half, and I am @!$&ing frustrated...)
If there is some Laradock-specific documentation -- other than the extant docs -- I'd greatly appreciate it.
Toomaj Boloorian
@toomaj_gitlab
Hi there, CODEIGNITER is mentioned in Laradock documents but it doesn't exist as expected: https://laradock.io/documentation/#install-codeigniter does anyone know about it please?
I was expecting to see that within the following file https://github.com/laradock/laradock/blob/master/docker-compose.yml from revision 6b16f2b
Toomaj Boloorian
@toomaj_gitlab
and CODEIGNITER was removed by 8de9eca I'm just wondering if there was a good reason for removing it and if there is a plan to put it back
Dendi Handian
@dendihandian
@theyudhiztira try to set PHP_WORKER_INSTALL_GD=true in .envand rebuild & re-run the container.
@toomaj_gitlab try to set the codeigniter app as a default/normal PHP application using the nginx\sites\app.conf.example in the Nginx instead of nginx\sites\laravel.conf.example
Pandu Yudhistira Wicaksono
@theyudhiztira
@dendihandian i tried but it doesn’t work seems there a problem with pdf parser
Tim Habersack
@timbotron
Quick question re: redis-cluster . It works fine in Laravel (yay!). However when I connect to the container via docker-compose exec redis-cluster bash, it connects fine, but when I try to run redis-cli it says Could not connect to Redis at 127.0.0.1:6379: Connection refused. Which is strange!
Tim Habersack
@timbotron
nevermind, I'm a dork. redis-cluster port is 7000, not default 6379
Tobias Fröberg
@TobiasFroberg
Hey, just trying laradock out and can't seem to figure out how to enable soap. I've enabled all soap flags in the env and I've rebuilt both workspace and php-fmp without cache. The container is using PHP 7.1. Any hints?
tienluckyfor
@tienluckyfor
Hi everyone I need a help,
I can't find the Postgresql config file in Laradock
What should I do to change something suitable for our project?
Chirag Parekh
@chiragparekh
Hi, how can I show php errors? right now it's not showing errors
Roger Roelofs
@rogerroelofs
@TobiasFroberg First I'd try phpInfo to see if the SOAP extension is being found. I've used SOAP in Laradock's php 7.1 and 7.4 config without incident. If it is not found, I'd try a 'build --no-cache' just to be sure everything is rebuilt.
Wagner Montanini
@WagnerMontanini
I can't find the ~ / .laradock / data folder. all my data is gone what can i do?
tcagkansokmen
@tcagkansokmen
hi there, is there any documentation how to deploy on AWS Elastic Beanstalk?
When I try to push with code pipeline, it gives error and not working. what should I do?
Roger Roelofs
@rogerroelofs
@WagnerMontanini The data file is usually located at the root of your laradock project, but it is set by your DATA_PATH_HOST variable so check what you have in your .env
@tcagkansokmen As far as I can tell, elastic beanstalk doesn't support docker-compose which is what Laradock uses. You will have to create an EB custom json file following their format.
Wagner Montanini
@WagnerMontanini
@rogerroelofs so I checked the variable and it looks like this ~ / .laradock / data but there is no folder in the root
Roger Roelofs
@rogerroelofs
@WagnerMontanini I'd check your laradock project root to see if your data might be there instead