Full PHP development environment for Docker.

Overview

Laradock Logo

contributions welcome GitHub forks GitHub issues GitHub stars GitHub CI Build status GitHub license

Full PHP development environment based on Docker.

forthebadge



Use Docker First - Learn About It Later!

Laradock Documentation

Join Us

Gitter

Gitpod


Awesome People

Laradock is an MIT-licensed open source project with its ongoing development made possible entirely by the support of all these smart and generous people, from code contributors to financial contributors. 💜

Project Maintainers


Mahmoud Zalt
@mahmoudz

Bo-Yi Wu
@appleboy

Philippe Trépanier
@philtrep

Mike Erickson
@mikeerickson

Dwi Fahni Denni
@zeroc0d3

Thor Erik
@thorerik

Winfried van Loon
@winfried-van-loon

TJ Miller
@sixlive

Yu-Lung Shao (Allen)
@bestlong

Milan Urukalo
@urukalo

Vince Chu
@vwchu

Huadong Zuo
@zuohuadong

Lan Phan
@lanphan

Ahkui
@ahkui

< Join Us >
@laradock

Code Contributors

Laradock Contributors

Financial Contributors

Open Collective backers

You can support us using any of the methods below:

1: Open Collective
2: Paypal
3: Github Sponsors
4: Patreon


Sponsors

Sponsoring is an act of giving in a different fashion. 🌱

Gold Sponsors

CasinoPilotti We thank bestonlinecasino.com for their support Apiato Build PHP API's faster

Silver Sponsors

Bronze Sponsors

You can sponsor us using any of the methods below:

1: Sponsor via Open Collective.
2: Email us at [email protected].

Sponsors logos are displayed on the github repository page and the documentation website home page.

License

MIT © Mahmoud Zalt

Issues
  • SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

    SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

    Info:

    • Docker version ($ docker --version): Docker version 17.12.0-ce, build c97c6d6
    • Laradock commit ($ git rev-parse HEAD): 8323c659ed588ad2d2b02a13dfab651c051302e8
    • System info (Mac, PC, Linux): MacOS Sierra 10.12.6
    • System info disto/version:

    Issue:

    Using the mysql and nginx containers, running a migration yields the following error: The server requested authentication method unknown to the client [caching_sha2_password].

    This seems to be due to mysql 8.x forcing a new password format. Attempting to force old_passwords=1 from inside the mysql container yields ERROR 1231 (42000): Variable 'old_passwords' can't be set to the value of '1'.

    This does occur when trying to run a migration from inside the workspace - where both the version of php and mysql should be controlled by Laradock.


    Expected behavior:

    Laravel should be able to login to the database and do its thing.


    Reproduce:

    Pull clean copy of Laradock, set DB_HOST=127.0.0.1 in .env (for reasons unknown to me, DB_HOST=mysql yields SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known), start the mysql and nginx containers, enter the workspace container and run php artisan migrate.


    Stale 
    opened by MaximilianCoutuer 72
  • Docker on Mac is slow

    Docker on Mac is slow

    The entire development environment is slow for some reason, not sure if this is a Docker problem or something added to LaraDock that makes it that slow!! (By slow I mean the response time is slow, and the commands running in the workspace container are also slow).

    We need your help to find out what's slowing it and make it fast again.

    This is also mentioned in the following issues #97, #145, #149 & #307.

    Priority: High Type: Possible Bug 
    opened by Mahmoudz 69
  • Guzzle/Curl connections between multiple projects

    Guzzle/Curl connections between multiple projects

    I'm running Laradock in the "Multiple Projects" mode (https://github.com/laradock/laradock#b-setup-for-multiple-projects) for two projects. I've configured nginx to properly serve both projects under separate hostnames (let's call them api-project.dev and consumer-project.dev, names changed to protect the innocent). I've set up the /etc/hosts file on my Mac to point to localhost:

    127.0.0.1  api-project.dev
    127.0.0.1  consumer-project.dev
    

    I can access the running laravel instances on both without any problems, but when the consumer tries to make Guzzle/Curl requests to the api-project, I get a cURL error:

    [curl] 7: Failed to connect to api-project.dev port 80: Connection refused

    This seems to be an error where the containers on which the curl request are being made don't know the proper IP address and thus are making their requests to "localhost", meaning their own container (and not hitting the nginx container instead).

    Wat do? How can I fix this?

    Type: Need Help 
    opened by chrispappas 58
  • Mysql. The server requested authentication method unknown to the client [caching_sha2_password]

    Mysql. The server requested authentication method unknown to the client [caching_sha2_password]

    Info:

    • Docker version: 17.12.0-ce, build c97c6d6
    • Laradock commit: 13f55ef7967989337ed3538af3a8164268eeb623
    • System info: Win
    • System info disto/version: 10

    Issue:

    New fresh laradock installation. All default settings. Driver is shared. Except:

    DATA_SAVE_PATH=../../data
    

    Can't connect to the mysql from phpMyAdmin. image

    #2054 - The server requested authentication method unknown to the client

    mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]

    mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client

    But I can connect to mysql inside mysql container with standard root/root credentials.

    I tried to delete all containers and images. Several times downloaded laradock. Tried to reinstall Docker. No success.


    Expected behavior:

    Can connect to mysql with phpMyAdmin


    Logs

    $ docker logs laradock_mysql_1
    2018-02-23T13:22:10.682788Z 0 [Warning] [MY-011070] Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it is deprecated and will be removed in a future release.
    2018-02-23T13:22:10.682938Z 0 [Warning] [MY-010915] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
    2018-02-23T13:22:10.695441Z 0 [System] [MY-010116] /usr/sbin/mysqld (mysqld 8.0.4-rc-log) starting as process 1 ...
    mbind: Operation not permitted
    mbind: Operation not permitted
    2018-02-23T13:22:11.537504Z 0 [Warning] [MY-010068] CA certificate ca.pem is self signed.
    2018-02-23T13:22:11.542367Z 0 [Warning] [MY-000000] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
    2018-02-23T13:22:11.549449Z 0 [Warning] [MY-010315] 'user' entry '[email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.549556Z 0 [Warning] [MY-010315] 'user' entry '[email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.549594Z 0 [Warning] [MY-010315] 'user' entry '[email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.549629Z 0 [Warning] [MY-010315] 'user' entry '[email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.549676Z 0 [Warning] [MY-010323] 'db' entry 'performance_schema [email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.549727Z 0 [Warning] [MY-010323] 'db' entry 'sys [email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.549779Z 0 [Warning] [MY-010311] 'proxies_priv' entry '@ [email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.565161Z 0 [Warning] [MY-010330] 'tables_priv' entry 'user [email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.565260Z 0 [Warning] [MY-010330] 'tables_priv' entry 'sys_config [email protected]' ignored in --skip-name-resolve mode.
    2018-02-23T13:22:11.570621Z 0 [System] [MY-010931] /usr/sbin/mysqld: ready for connections. Version: '8.0.4-rc-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL).
    
    
    opened by mvladimir7 46
  • Delete MINER from php-fpm container!

    Delete MINER from php-fpm container!

    file /tmp/kdevtmpfsi is miner Laradock master commit

    Priority: High Stale Status: Need More info 
    opened by hitman249 37
  • Add Crontab and Supervisor

    Add Crontab and Supervisor

    add crontab and supervisor support

    if we need to run a full-featured laravel application we need to add laravel crontab setting to system . reference: https://laravel.com/docs/5.2/scheduling

    eg:

    * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
    

    and optionally we need to add The Queue Listener to the System by supervisor . reference: https://laravel.com/docs/5.2/queues#supervisor-configuration

    eg:

    [program:laravel-worker]
    process_name=%(program_name)s_%(process_num)02d
    command=php /home/forge/app.com/artisan queue:work sqs --sleep=3 --tries=3 --daemon
    autostart=true
    autorestart=true
    user=forge
    numprocs=8
    redirect_stderr=true
    stdout_logfile=/home/forge/app.com/worker.log
    

    if we have multiple application we may need a mapping folder like nginx site-avaiable to store supervisor conf.d config files.

    Priority: Medium Type: Software Support 
    opened by nickfan 37
  • 在国内,下载内部镜像超级慢!!!

    在国内,下载内部镜像超级慢!!!

    谁能告诉我,如何加速国内下载所有的内部镜像,简直是要死人

    GFW Stale 
    opened by huiyonghkw 36
  • xDebug PhpStorm Working Via CLI - Not Working Via Web Page/Apache

    xDebug PhpStorm Working Via CLI - Not Working Via Web Page/Apache

    Hello I am having an issue getting php-fpm to trigger debugging when hitting web pages. I have setup everything correctly as far as I know, here are my configs:

    docker-composer.yml: image

    php-fpm/xdebug.ini: image

    The debugging works great when calling php from the CLI (inside the fpm container): image

    However when I load a web page it refuses to try and connect to phpstorm, there is no output inside php storm at all. Also the web pages still load at full speed (in my experience if xdebug is properly trying to look for a remote connection the page load times double).

    Here is phpinfo output for xdebug, so its definitley being loaded properly: image

    I also have the xdebug chrome extension setting the cookie for the ide key to PHPSTORM.

    I am totally stumped, any advice would be appreciated.

    *Edit - I am using apache.

    Cheers!

    opened by calebfavor 33
  • Docker Trojan Horse in Redis Container

    Docker Trojan Horse in Redis Container

    Info:

    • Docker version ($ docker --version):
    • Laradock commit ($ git rev-parse HEAD):
    • System info (Mac, PC, Linux):
    • System info disto/version:

    Issue:

    I recently found that after a rebuild, the redis container would shut down after exactly 24 hr. After looking through the log, I found that after 24hr, redis would run the following command:

    redis_1 | sh: 1: killall: not found redis_1 | ./xmrig-notls: unrecognized option '--max-cpu-usage'


    Expected behavior:

    Expected it to work


    Reproduce:

    That's the tricky part. I didn't have this kind of issue until last week. Maybe the horse is from official docker redis container (possibly not) or maybe an intrusion into my system, but I only found xmrig under overlay2:

    /var/lib/docker/overlay2/f0d664c7954a158354876e11b8c89bd3c323d49ddc59c5531750b5ac639f9c6e/merged/tmp/xmrig-2.99.0-beta/xmrig /var/lib/docker/overlay2/f0d664c7954a158354876e11b8c89bd3c323d49ddc59c5531750b5ac639f9c6e/diff/tmp/xmrig-2.99.0-beta/xmrig

    So it's more likely a container problem.


    Relevant Code:

    // place a code sample here
    
    Type: Possible Bug 
    opened by zimo-xiao 31
  • Cannot build php-fpm

    Cannot build php-fpm

    When try run docker-compose up or docker-compose up nginx mysql redis with some parameter the result it's same. I have this error.. Building php-fpm ERROR: Unknown instruction: DOCKER-PHP-EXT-INSTALL

    And can't fixed this. Any idea?

    Type: Bug 
    opened by gabfiocchi 31
  • certbot renew failed

    certbot renew failed

    Is your feature request related to a problem? Please describe. archive folder has many cert, only first time the file name is cert1.pem

    Describe the solution you'd like we should use live folder, it's link new cert always

    Describe alternatives you've considered update the run-certbot.sh

    cp /etc/letsencrypt/live/"$CN"/cert1.pem /var/certs/"$CN"-cert1.pem
    cp /etc/letsencrypt/live/"$CN"/chain1.pem /var/certs/"$CN"-chain1.pem
    cp /etc/letsencrypt/live/"$CN"/fullchain1.pem /var/certs/"$CN"-fullchain1.pem
    cp /etc/letsencrypt/live/"$CN"/privkey1.pem /var/certs/"$CN"-privkey1.pem
    

    copy cert form live folder

    Additional context Thanks everyone

    Type: Feature Request 
    opened by amung966 0
  • 'CODEIGNITER=false' doesn't appear in the docker-compose.yml file

    'CODEIGNITER=false' doesn't appear in the docker-compose.yml file

    Hi, I'm considering using laradock for a codeigniter 3 project

    According to the documentation

    Install CodeIgniter
    To install CodeIgniter 3 on Laradock all you have to do is the following simple steps:
    
    1 - Open the docker-compose.yml file.
    
    2 - Change CODEIGNITER=false to CODEIGNITER=true.
    
    3 - Re-build your PHP-FPM Container docker-compose build php-fpm.
    

    However, I didn't see CODEIGNITER=false appear in the docker-compose.yml file

    https://github.com/laradock/laradock/blob/master/docker-compose.yml

    Is this a bug or I do something wrong?

    Thanks for your help!

    Type: Bug 
    opened by howtomakeaturn 0
  •  E: Unable to locate package msodbcsql17

    E: Unable to locate package msodbcsql17

    Description:

    i got error

    E: Unable to locate package msodbcsql17

    when building php-fpm

    Expected Behavior:

    image built successfully

    Context information:

    Output of git rev-parse HEAD

    2bbe850d2889206b796034a56e04dd6951fd4da8
    

    Output of docker version

    Client:
     Cloud integration: 1.0.17
     Version:           20.10.7
     API version:       1.41
     Go version:        go1.16.4
     Git commit:        f0df350
     Built:             Wed Jun  2 11:56:23 2021
     OS/Arch:           darwin/arm64
     Context:           default
     Experimental:      true
    
    Server: Docker Engine - Community
     Engine:
      Version:          20.10.7
      API version:      1.41 (minimum version 1.12)
      Go version:       go1.13.15
      Git commit:       b0f5bc3
      Built:            Wed Jun  2 11:55:36 2021
      OS/Arch:          linux/arm64
      Experimental:     false
     containerd:
      Version:          1.4.6
      GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
     runc:
      Version:          1.0.0-rc95
      GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    

    Output of docker-compose version

    docker-compose version 1.29.2, build 5becea4c
    docker-py version: 5.0.0
    CPython version: 3.9.0
    OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020
    

    System info: Mac, Windows or Linux. Include which disto/version

    Macbook Pro m1 2020 
    MacOS Big Sur 11.14
    

    Steps to reproduce the issue:

    1. PHP_FPM_INSTALL_MSSQL=true
    2. docker-compose build --no-cache php-fpm

    Stacktrace & Additional info:

    executor failed running [/bin/sh -c set -eux;   if [ ${INSTALL_MSSQL} = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       apt-get -yqq install freetds-dev libsybdb5       && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so       && docker-php-ext-install mssql pdo_dblib       && php -m | grep -q 'mssql'       && php -m | grep -q 'pdo_dblib'     ;else       apt-get install -yqq apt-transport-https gnupg       && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -       && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list       && apt-get update -yqq       && ACCEPT_EULA=Y apt-get install -yqq unixodbc unixodbc-dev libgss3 odbcinst msodbcsql17 locales       && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen       && ln -sfn /etc/locale.alias /usr/share/locale/locale.alias       && locale-gen       && if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "2" ]; then         pecl install pdo_sqlsrv-5.8.1 sqlsrv-5.8.1       ;elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then         pecl install pdo_sqlsrv-5.6.1 sqlsrv-5.6.1       ;elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "0" ]; then         pecl install pdo_sqlsrv-5.3.0 sqlsrv-5.3.0       ;else         pecl install pdo_sqlsrv sqlsrv       ;fi       && docker-php-ext-enable pdo_sqlsrv sqlsrv       && php -m | grep -q 'pdo_sqlsrv'       && php -m | grep -q 'sqlsrv'     ;fi   ;fi]: exit code: 100
    ERROR: Service 'php-fpm' failed to build : Build failed
    
    Type: Bug 
    opened by utopictown 1
  • Workspace build error with mongoDb ext for PHP 7.0

    Workspace build error with mongoDb ext for PHP 7.0

    Description:

    My composition involves the use of mongoDb with php version 7.0. The output of the docker-compose returns an incompatibility error in the construction of the workspace container between the version of php necessary for the Pecl of mongodb and the one present in the linux distro [ERROR 36/105]..... pecl/mongodb requires PHP (version >= 7.1.0, version <= 8.99.99), installed version is 7.0.33-52+ubuntu20.04.1+deb.sury.org+1

    Expected Behavior:

    The use of the Pecl mongoDb consistent with the version 7.0 of PHP indicated in the .env file

    Context information:

    Output of git rev-parse HEAD

    2bbe850d2889206b796034a56e04dd6951fd4da8

    Output of docker version

    Client:
     Cloud integration: 1.0.17
     Version:           20.10.7
     API version:       1.41
     Go version:        go1.16.4
     Git commit:        f0df350
     Built:             Wed Jun  2 11:56:22 2021
     OS/Arch:           darwin/amd64
     Context:           default
     Experimental:      true
    
    Server: Docker Engine - Community
     Engine:
      Version:          20.10.7
      API version:      1.41 (minimum version 1.12)
      Go version:       go1.13.15
      Git commit:       b0f5bc3
      Built:            Wed Jun  2 11:54:58 2021
      OS/Arch:          linux/amd64
      Experimental:     true
     containerd:
      Version:          1.4.6
      GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
     runc:
      Version:          1.0.0-rc95
      GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
     docker-init:
      Version:          0.19.0
      GitCommit:        de40ad0
    
    

    Output of docker-compose version

    docker-compose version 1.29.2, build 5becea4c
    docker-py version: 5.0.0
    CPython version: 3.9.0
    OpenSSL version: OpenSSL 1.1.1h  22 Sep 2020
    
    

    System info: Mac, Windows or Linux. Include which disto/version

    macOs BigSur 11.4 (20F71)
    

    Steps to reproduce the issue:

    1. set PHP_VERSION=7.0 in .env file
    2. docker-compose up -d nginx mysql mongo

    Stacktrace & Additional info:

    Digest: sha256:97468fc4c0ed9de03e58d27a1a8c6cb64cea334363008b9fc09d4b6ed8793229
    Status: Downloaded newer image for docker:19.03-dind
    Building workspace
    [+] Building 47.3s (41/110)                                                                                             
     => [internal] load build definition from Dockerfile                                                               0.0s
     => => transferring dockerfile: 62.57kB                                                                            0.0s
     => [internal] load .dockerignore                                                                                  0.0s
     => => transferring context: 2B                                                                                    0.0s
     => [internal] load metadata for docker.io/laradock/workspace:latest-7.0                                           1.4s
     => [auth] laradock/workspace:pull token for registry-1.docker.io                                                  0.0s
     => [internal] load build context                                                                                  0.0s
     => => transferring context: 17.23kB                                                                               0.0s
     => CACHED [  1/105] FROM docker.io/laradock/workspace:[email protected]:29154e298646127be41ed372421224b0d3aafae5  0.0s
     => [  2/105] COPY ./sources.sh /tmp/sources.sh                                                                    0.5s
     => [  3/105] RUN if [ false = true ]; then     sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/  0.3s
     => [  4/105] RUN set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     groupadd -g 100  8.0s
     => [  5/105] RUN ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone                       0.4s 
     => [  6/105] COPY ./aliases.sh /root/aliases.sh                                                                   0.0s 
     => [  7/105] COPY ./aliases.sh /home/laradock/aliases.sh                                                          0.1s 
     => [  8/105] RUN sed -i 's/\r//' /root/aliases.sh &&     sed -i 's/\r//' /home/laradock/aliases.sh &&     chown   0.3s 
     => [  9/105] RUN echo "" >> ~/.bashrc &&     echo "# Load Custom Aliases" >> ~/.bashrc &&     echo "source ~/ali  0.4s 
     => [ 10/105] COPY ./composer.json /home/laradock/.composer/composer.json                                          0.0s 
     => [ 11/105] COPY ./auth.json /home/laradock/.composer/auth.json                                                  0.0s
     => [ 12/105] RUN chown -R laradock:laradock /home/laradock/.composer                                              0.3s
     => [ 13/105] RUN echo "" >> ~/.bashrc &&     echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bashrc   0.3s
     => [ 14/105] RUN set -eux;       if [ "1.9.3" = "1" ] || [ "1.9.3" = "2" ]; then           composer self-update   0.9s
     => [ 15/105] RUN if [ true = true ]; then     composer global install ;fi                                         0.6s
     => [ 16/105] RUN if [ false = false ]; then     rm /home/laradock/.composer/auth.json ;fi                         0.3s
     => [ 17/105] RUN if [  ]; then     composer config -g repo.packagist composer  ;fi                                0.3s
     => [ 18/105] RUN echo "" >> ~/.bashrc &&     echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bashrc       0.4s
     => [ 19/105] RUN echo "" >> ~/.bashrc &&     echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc          0.6s
     => [ 20/105] COPY ./crontab /etc/cron.d                                                                           0.1s
     => [ 21/105] RUN chmod -R 644 /etc/cron.d                                                                         0.3s
     => [ 22/105] RUN if [ false = true ]; then     apt-get -qq -y install mysql-client &&     curl -fsSL -o /usr/loc  0.4s
     => [ 23/105] RUN if [ false = true ]; then     curl -fsSL -o /usr/local/bin/wp https://raw.githubusercontent.com  0.4s
     => [ 24/105] RUN set -eux;     if [ false = true ]; then       apt-get -yqq install php7.0-bz2;     fi;     if [  3.8s
     => [ 25/105] RUN set -eux;     if [ false = true ]; then         apt-get install -yqq libldap2-dev php7.0-ldap;   0.4s
     => [ 26/105] RUN if [ true = true ]; then   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then     pecl ins  21.2s
     => [ 27/105] COPY ./xdebug.ini /etc/php/7.0/cli/conf.d/xdebug.ini                                                 0.1s
     => [ 28/105] RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then   sed -i "s/xdebug.remote_host=/xdebug.c  0.4s
     => [ 29/105] RUN sed -i "s/xdebug.cli_color=0/xdebug.cli_color=1/" /etc/php/7.0/cli/conf.d/xdebug.ini             0.4s
     => [ 30/105] RUN if [ false = true ]; then   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ]; then     if [ $(p  0.4s
     => [ 31/105] RUN if [ false = true ]; then     apt-get install -y --force-yes php7.0-phpdbg ;fi                   0.4s
     => [ 32/105] RUN if [ true = false -a false = true ]; then     curl -L https://packages.blackfire.io/gpg.key | a  0.3s
     => [ 33/105] COPY insecure_id_rsa /tmp/id_rsa                                                                     0.1s
     => [ 34/105] COPY insecure_id_rsa.pub /tmp/id_rsa.pub                                                             0.0s
     => [ 35/105] RUN if [ false = true ]; then     rm -f /etc/service/sshd/down &&     cat /tmp/id_rsa.pub >> /root/  0.3s
     => ERROR [ 36/105] RUN if [ true = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then        2.6s
    ------
     > [ 36/105] RUN if [ true = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       pecl install mongo &&       echo "extension=mongo.so" >> /etc/php/7.0/mods-available/mongo.ini &&       ln -s /etc/php/7.0/mods-available/mongo.ini /etc/php/7.0/cli/conf.d/30-mongo.ini     ;else       pecl install mongodb &&       echo "extension=mongodb.so" >> /etc/php/7.0/mods-available/mongodb.ini &&       ln -s /etc/php/7.0/mods-available/mongodb.ini /etc/php/7.0/cli/conf.d/30-mongodb.ini     ;fi ;fi:
    #41 2.588 pecl/mongodb requires PHP (version >= 7.1.0, version <= 8.99.99), installed version is 7.0.33-52+ubuntu20.04.1+deb.sury.org+1
    #41 2.588 No valid packages found
    #41 2.588 install failed
    ------
    executor failed running [/bin/sh -c if [ ${INSTALL_MONGO} = true ]; then     if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then       pecl install mongo &&       echo "extension=mongo.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini &&       ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongo.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongo.ini     ;else       pecl install mongodb &&       echo "extension=mongodb.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini &&       ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/mongodb.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-mongodb.ini     ;fi ;fi]: exit code: 1
    ERROR: Service 'workspace' failed to build : Build failed
    `docker-compose` process finished with exit code 1
    
    
    Type: Bug 
    opened by lexlutorcorp 0
  • Database lost after server restart

    Database lost after server restart

    Description:

    I am using laradock for hosting my application in an ec2 instance. After the server reboot the database is empty, no tables no data nothing. Does anyone knows why this happened and if i can restore my data back?

    Type: Bug 
    opened by zatkniz 0
  • Add console port and fix environments for minio

    Add console port and fix environments for minio

    Description

    Environment keys MINIO_ACCESS_KEY and MINIO_SECRET_KEY are deprecated, and MinIO Console needs a static port.

    minio_1                | WARNING: MINIO_ACCESS_KEY and MINIO_SECRET_KEY are deprecated.
    minio_1                |          Please use MINIO_ROOT_USER and MINIO_ROOT_PASSWORD
    minio_1                | API: http://172.23.0.2:9000  http://172.24.0.2:9000  http://127.0.0.1:9000 
    minio_1                | 
    minio_1                | Console: http://172.23.0.2:41665 http://172.24.0.2:41665 http://127.0.0.1:41665 
    minio_1                | 
    minio_1                | Documentation: https://docs.min.io
    minio_1                | 
    minio_1                | WARNING: Console endpoint is listening on a dynamic port (41665), please use --console-address ":PORT" to choose a static port.
    

    Motivation and Context

    Changed environment keys to MINIO_ROOT_USER and MINIO_ROOT_PASSWORD, and chose 9001 as default port for MinIO Console.

    Types of Changes

    • [X] Bug fix (non-breaking change which fixes an issue).
    • [] New feature (non-breaking change which adds functionality).
    • [] Breaking change (fix or feature that would cause existing functionality to not work as expected).

    Definition of Done Checklist:

    • [X] I've read the Contribution Guide.
    • [X] I've updated the documentation. (refer to this for how to do so).
    • [X] I enjoyed my time contributing and making developer's life easier :)
    opened by memochou1993 7
  • MySQL version 5.7.34

    MySQL version 5.7.34

    Description:

    When I downgrade mysql version 8 to version 5.7.34, I got some errors Table 'database.[table_name]' doesn't exist when create new table [table_name]

    Type: Bug 
    opened by tantq 0
  • php-extension MQTT for alibaba

    php-extension MQTT for alibaba

    php-fpm/Dockerfile

    RUN apt-get install -y --force-yes libmosquitto-dev
    && pecl install -o -f Mosquitto-alpha
    && docker-php-ext-enable mosquitto

    Type: Feature Request 
    opened by 13091881931 0
  • Build error for PHP-FPM Audiowaveform

    Build error for PHP-FPM Audiowaveform

    Description:

    There is error when I set audiowaveform to true for php-fpm

    Expected Behavior:

    It should build without problem

    Context information:

    Output of git rev-parse HEAD

    {paste here}
    

    Output of docker version

    {paste here}
    

    Output of docker-compose version

    {paste here}
    

    System info: Mac, Windows or Linux. Include which disto/version

    {paste here}
    

    Steps to reproduce the issue:

    1. in .env set audiowaveform to true under php-fpm
    2. run docker-compose build --no-cache php-fpm

    Stacktrace & Additional info:

    -- CMAKE_CXX_COMPILER_VERSION='8.3.0'
    -- CMAKE_CXX_FLAGS='-std=c++11 -Wall -Wextra -Wconversion -pedantic -DBOOST_FILESYSTEM_NO_DEPRECATED'
    -- CMAKE_CXX_FLAGS_DEBUG='-g'
    -- CMAKE_CXX_FLAGS_RELEASE='-O3 -DNDEBUG'
    -- CMAKE_CXX_COMPILE_OBJECT='<CMAKE_CXX_COMPILER>  <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>'
    **CMake Warning at googletest/CMakeLists.txt:54 (project):
      VERSION keyword not followed by a value or was followed by a value that
      expanded to nothing.**
    
    
    -- Found Python: /usr/bin/python3.7 (found version "3.7.3") found components:  Interpreter 
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE  
    **CMake Error at googletest/CMakeLists.txt:132 (set_target_properties):
      set_target_properties called with incorrect number of arguments.
    
    
    CMake Error at googletest/CMakeLists.txt:134 (set_target_properties):
      set_target_properties called with incorrect number of arguments.**
    
    Type: Bug 
    opened by warrence 1
  • Connection to ssl://smtp_server:465 Timed Out

    Connection to ssl://smtp_server:465 Timed Out

    Description:

    I've a Laradock configured with redis, php-worker and horizon. I can't send some email, the log error is a generic:

    Connection to ssl://smtp.eu.mailgun.org:465 Timed Out at /var/www/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:166)

    The same behavior with other smtps server. The email is always in pending status... If I restarted all containers, some mails (20-30) are sended correctly but after a time the same error occurs.

    In php-fpm container, I can't ping the smtp server:

    380 packets transmitted, 0 received, 100% packet loss, time 465ms.

    Expected Behavior:

    Context information:

    Output of git rev-parse HEAD

    f31bb7e13eb09151c910ac191cf013b07913d20f
    

    Output of docker version

    Version:           19.03.15
     API version:       1.40
    

    Output of docker-compose version

    docker-compose version 1.29.1, build c34c88b2
    

    System info: Mac, Windows or Linux. Include which disto/version

    Debian 9
    
    Type: Bug 
    opened by cent89 0
Releases(v12.1)
  • v11.0(Jun 17, 2020)

  • v10.0(Mar 11, 2020)

  • v9.7(Feb 17, 2020)

  • v9.6(Feb 3, 2020)

  • v9.5(Jan 9, 2020)

  • v9.4(Jan 1, 2020)

  • v9.3(Dec 19, 2019)

  • v9.2(Dec 17, 2019)

    • #2273 add missing config for inotify and fswatch
    • #2365 update document for workspace supervisor
    • #2425 update php-fpm base image
    • #2427 Drop unneeded settings for devcontainer.json (VSCode already handles them automatically)
    Source code(tar.gz)
    Source code(zip)
  • v9.0(Dec 5, 2019)

  • v7.15(Jun 13, 2019)

    • Add ghostscript to php worker (#2035)
    • Add Manticore Search (#2036)
    • php-woker add swoole (#2045)
    • Consistency fix (#2053)
    • Add force option when start laravel-echo-server, update laravel-echo-server version (#2052)
    • Pgadmin newest version 4.x (#2054)
    • Fix README URL (#2051,#2055)
    • workspace add inotify and fswatch (#2059)
    • Add powerline to workspace (#2062)
    • Install ffmpeg in workspace.
    • Fix pgadmin workstation name (#2088)
    • Switched base image to fix recurrent caddy issues. (#2095)
    • Added docker-compose run workspace example (#2094)
    • Add sonarqube to docker-compose (#2113)
    • Remove unnecessary .gitkeep (#2070)
    • Add PHP_FPM_INSTALL_RDKAFKA as an option to install rdkafka extension (#2040)
    • Workspace: blackfire gpg.key url fixed (#2133)
    • Allowing php-worker to install gmp extension (#2152)
    • Add php ext "taint" (#2150)
    • Removing mention of production-docker-compose.yml file (#2093)
    • Add 'sshpass' and 'ping' packages into 'workspace' and 'php-fpm' Docker image (#2164)
    • Fix ci build failed and nginx adduser error (#2165)
    Source code(tar.gz)
    Source code(zip)
  • v7.14(Mar 3, 2019)

  • v7.13(Mar 1, 2019)

  • v7.12(Feb 28, 2019)

    • php-fpm replace base image to letsdockerize/laradock-php-fpm (#2025)
    • workspace replace base image to letsdockerize/laradock-workspace (#2025)
    • added variable for xsl (#2016)
    • Auth file for magento 2 installation (#2022)
    • fix ipython-controller build fail (#2027)
    Source code(tar.gz)
    Source code(zip)
  • v7.11.0(Feb 23, 2019)

    • workspace redis extension use apt install. (#1990)
    • fix adminer INSTALL_MSSQL build fail. (#1991)
    • Support for additional locales in PHP-FPM (#1976)
    • Fixed docker command permission denied error while building (#1822)
    • xsl support added (feature for magento 2) (#1995)
    • added zip to php-fpm workspace container (#1903)
    • add: redis-cluster (#1981)
    • Added WORKSPACE_INSTALL_NPM_ANGULAR_CLI option to install Angular CLI to Workspace (#1857)
    • fix install zip fail (#1998)
    • reorganizaion aerospike extension install (#2008)
    • php-fpm install mysql-client (#2005)
    • php 7.0 php-fpm and workspace PECL install sqlsrv pdo_sqlsrv specify 5.3.0 version. (#2010)
    • Fix workspace php56 build fail (#2012)
    • update version of elastic and kibana (#1996)
    • Fix workspace php56 install V8JS build fail (#2013)
    • Optimize php-fpm and workspace Dockerfile. (#2015)
    Source code(tar.gz)
    Source code(zip)
  • v7.10.0(Feb 11, 2019)

    • using Alpine for Beanstalkd and RabbitMQ (#1950)
    • chore(pgadmin) use alpine (#1936)
    • fix php-fpm AMQP build for 5.6, 7.0 and 7.1 (#1965)
    • add MYSQL_CLIENT and AMQP for php-worker (#1949)
    • Add logstash support (#1852)
    • Add traefik (#1916)
    • persistent RabbitMQ (#1956)
    • volumes flag APP_CODE_CONTAINER_FLAG (#1591)
    • Add wp-cli (#1748)
    • Fix aliases (#1696)
    • Add CouchDB (#1974)
    Source code(tar.gz)
    Source code(zip)
  • v7.9.1(Jan 10, 2019)

    • Fix Phalcon problem (#1811 #1947).
    • Fix Aerospike build fail (#1948).
    • Add .gitignore for nginx/ssl (#1929).
    • php-worker add laradock user (#1928 ).
    Source code(tar.gz)
    Source code(zip)
  • v7.9.0(Jan 9, 2019)

    • Update to fresh version Adminer 4.x (#1900)
    • Add more git aliases (#1922)
    • Install socket extension for php-fpm (#1923)
    • Add mosquitto broker (#1914)
    • Add ZooKeeper Component (#1899)
    • Add zip extension support for PHP in php-worker (#1894)
    • Updated Chrome Driver to latest stable version (2.32 to 2.42) in env-example (#1813)
    • Update docker-compose.yml to add 'dind' to 'Workspace' (#1869)
    • Add laravel-horizon (#1854)
    Source code(tar.gz)
    Source code(zip)
  • v7.8.0(Nov 13, 2018)

    • add mssql support for solr (#1829)
    • added SOAP ext to php-worker (#1817)
    • Fix typo in seed alias (#1843)
    • Remove duplicate key (#1808)
    • Update Doc '.php-fpm' to './php-fpm' (#1848)
    • Nginx: added OpenSSL for local development (#1527)
    • Drop the useless PHP tokenizer extension install step (#1650)
    • Fixed typo (#1358)
    • fix home page logo link
    • integrate seedanddew
    • add phalcon ext (#1806)
    • Fix Travis CI build failed (#1803)
    • Add docker registry (#1770)
    Source code(tar.gz)
    Source code(zip)
  • v7.7.0(Sep 17, 2018)

    • Added support for Thumbor
    • Fix CHANGE_SOURCE argument always false for nginx's Dockerfile
    • workspace
      • Change to stable CLI interface
      • Update NVM installer
    Source code(tar.gz)
    Source code(zip)
  • v7.6.0(Sep 16, 2018)

    • Added ssh2 to workspace and php-fpm
    • Add IonCube Loader (zend_extension)
    • Add .gitignore to php-worker
    • Fix typo
    • Update caddy Dockerfile
    • Fix comment (workspace)
    • Update baseurl to https (Documentation)
    • Add mail services (mailu)
    Source code(tar.gz)
    Source code(zip)
  • v7.5.0(Aug 26, 2018)

    • fix php5.6 workspace aerospike travis-ci build failed. (#1738)
    • Support Faketime
    • Add Web Based IDEs (#1705)
    • Added ext-gmp to workspace container
    • Auto reload caddy and add basicauth example
    Source code(tar.gz)
    Source code(zip)
  • v7.4.0(Jul 29, 2018)

    • Add bcmatch extension to php-worker
    • Upgrade PostgreSQL client to version 10.
    • Update MSSQL Drivers To Newest Version.
    • php-fpm and workspace ARG var rename: PHP_VERSION to LARADOCK_PHP_VERSION.
    • travis-ci skip phpbdg.
    • Add Metabase for analytics and Business Intelligence.
    Source code(tar.gz)
    Source code(zip)
  • v7.3.0(Jul 19, 2018)

    • Update documentation
    • Add Mongo webui
    • Add Redis webui
    • Update postgresql init db example file
    • Add IPython
    • Add Jupyterhub
    • Make PR Template Checkboxes Render Correctly
    • Added option to install the php calendar extension in php-fpm
    • Add Gitlab
    Source code(tar.gz)
    Source code(zip)
  • v7.2.0(Jun 30, 2018)

    • Fix minor typos and clarify few documentation phrases
    • Automate xdebug installation and simplify instructions
    • Update linuxbrew install instructions
    • Update mongo install instructions
    • Update node & yarn install instructions
    • Update global composer install instructions
    • Update aerospike installation instructions
    • Update laravel envoy install instructions
    • Update deployer install instructions
    • Update nvm install instructions
    • Fix #1627, The POSTGRES_ENTRYPOINT_INITDB variable is not set
    • Conditionally install npm tools
    • Fix apt-get deprecated --force-yes flag & noninteractive if needed
    • php-fpm, workspace when php5 support old mongo ext
    • php-fpm ini file rename to match volume config format
    • Fix PHP zip extension installation warnings
    • Fix missing apt-utils package
    • Fix minor syntax issue that solves "[/bin/sh: 1: [: missing ]" error
    • Update VUE CLI to v3
    • fix: MySQL 8.0 removed NO_AUTO_CREATE_USER SQL mode, fixed #1492
    • Install of libpng16 library for fix react and react with material-ui
    • Add netdata for monitoring server
    • Update docker-compose.yml to add 'dind'
    • Fix Laradock-Toolbox url
    • bugfix: add 'networks' to 'docker-in-docker'
    • Fix current shell on root when installing svgo
    • Install phpdbg
    • Update version pointer node
    Source code(tar.gz)
    Source code(zip)
  • v7.1.2(Jun 25, 2018)

    • Conditionally install npm tools.
    • Fix apt-get deprecated --force-yes flag & noninteractive if needed.
    • php-fpm, workspace when php5 support old mongo ext.
    • php-fpm ini file rename to match volume config format.
    Source code(tar.gz)
    Source code(zip)
Owner
laradock
Docker For PHP
laradock
Up and running with small Docker environments

Vessel Up and running with small Docker dev environments. Documentation Full documentation can be found at https://vessel.shippingdocker.com. Install

Shipping Docker 1k Jul 24, 2021
Full PHP development environment for Docker.

Full PHP development environment based on Docker. Use Docker First - Learn About It Later! Join Us Awesome People Laradock is an MIT-licensed open sou

laradock 10.7k Jul 24, 2021
Stacker - The environment for local web development, ready for use.

Introduction English 简体中文 Why stacker? Stacker - This is a local environment for web development with everything you need. What is its benefit? You do

Nikolay Stepanov 355 Jun 26, 2021
Dockerized version of Laravel Homestead

laraedit-docker Dockerized version of Laravel Homestead Documentation For now you can check out the wiki for details on using the container. Once the

LaraEdit 441 Jun 7, 2021
Symfony5 template w/ Docker config

Symfony5 w/ Docker config A project template in the following configuration: Symfony 5.2 PHP8 PostgreSQL 13.2 Separate Docker containers for Nginx, FP

Andrew Alyamovsky 4 Jun 28, 2021
Vagrant is a tool for building and distributing development environments.

Vagrant Website: https://www.vagrantup.com/ Source: https://github.com/hashicorp/vagrant HashiCorp Discuss: https://discuss.hashicorp.com/c/vagrant/24

HashiCorp 22.3k Jul 24, 2021
A development tool for all your projects that is fast, easy, powerful and liberating

Lando A Liberating Dev Tool For All Your Projects The local development and DevOps tool trusted by professional developers across the galaxy. Free you

Lando 3k Jul 24, 2021
A fork of Laravel Valet to work in Linux.

Introduction Valet Linux is a Laravel development environment for Linux minimalists. No Vagrant, no /etc/hosts file. You can even share your sites pub

Carlos Priego 1.1k Jul 23, 2021
Protobox is vagrant web GUI

Protobox Protobox is a layer on top of vagrant and a web GUI to setup virtual machines for web development. A single YAML document controls everything

protobox 353 Jul 1, 2021
Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:

Latest Salt Documentation Open an issue (bug report, feature request, etc.) Salt is the world’s fastest, most intelligent and scalable automation engi

SaltStack 11.8k Jul 21, 2021
适用于一线安服的ctf培训题目,全docker环境一键启动

CTF培训题目集合 这些题目均是在前安服工作时候积累的培训题目,做成了docker环境,可以直接使用docker-compose up -d启动题目,部分题目可能未完善,存在bug。目前的工作不再做一线安服了,就把题目开源,给还战斗在一线的安服兄弟们一个参考。如果有侵权,联系我删除。 题目名称 分类

le31ei 122 Jul 22, 2021
Vagrant/Puppet GUI

PuPHPet PuPHPet - A simple GUI to set up virtual machines for PHP development What? PuPHPet is a web application that allows you to easily and quickly

PuPHPet 3.9k Jul 19, 2021
Monitor for any changes in your php application and automatically restart it (suitable for async apps).

PHP-watcher PHP-watcher helps develop long-running PHP applications by automatically restarting them when file changes in the directory are detected.

Sergey Zhuk 324 Jul 27, 2021