laradock

I get an Nginx 503 error when using Laradock to deploy a Laravel App

假如想象 提交于 2021-01-29 06:28:14
问题 Months ago I deployed a Laravel app ( laravel1 ) using Laradock and Jwilder Nginx Proxy. Recently I tried to deploy a second Laravel app ( laravel2 ), by using the same configuration values in both .env and docker-compose.yml files. However, I am getting the Nginx 503 error: 503 Service Temporarily Unavailable / Nginx To give more context, this is the structure of my directories, where Laravel1 is the first app I deployed which is currently working fine, and Laravel2 which has the 503 error.

Curl connection refused between applications on Docker container

一笑奈何 提交于 2021-01-28 06:18:29
问题 I have a website (ZF1) and an API (Laravel) running on the same Docker (Laradock) container. I can access each separately through a browser, but when I make a cURL request from the website to the application, I get a null response and the header returns 0. If I output the cURL errors, then I get this: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '[API_ENDPOINT]'); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,

第一次工作->笔记:在phpstrom2019上搭建phpunit单元测试环境,php环境使用docker

不羁的心 提交于 2020-12-18 06:51:47
前言:公司大佬让我开发一个工具,并合并到他的工具包中,使用的是github 说明:这里的php环境使用的是laradock、感兴趣的道友自行查找。 工具:php、phpstrom、phpunit、docker、composer 项目链接:https://github.com/hardykay/lara-for-tp.git或者https://github.com/tiderjian/lara-for-tp.git 环境和工作包获取自己查看开发文档。 接下来主要讲怎么使用phpstrom(2019)搭建使用docker php作为开发的php环境的phpunit单元测试。 1、设置php开发环境   a、file->settings->php      b、点击下面的的红色框选择php的路径所在         c、点击“+”号添加本机或者远程的php,我这里选择远程。      d、选择php,这里是phpstrom的使用说明有兴趣的道友自行查看https://www.jetbrains.com/help/phpstorm/troubleshooting-php-debugging.html      我选择docker      到这里可能有些道友会遇到一个问题,那就是找不到docker php,那你需要打开docker共享   勾选上就可以了          

SSL certificate on local Laradock Nginx project

試著忘記壹切 提交于 2020-11-29 09:26:48
问题 I need your help to set my Laradock (with Docker) using Nginx and SSL "fake" certificate on my local machine. I have no idea how to setup it. Could you please help me? Thanks 回答1: To enable SSL with the current version of laradock (as of Nov 2019) with a self signed certificate you must enable it in the nginx settings. Inside the folder nginx/sites remove the comments below line 6 "# For https" : # For https listen 443 ssl default_server; listen [::]:443 ssl default_server ipv6only=on; ssl