pvtl / docker-dev Goto Github PK
View Code? Open in Web Editor NEWA local Docker Environment for building PHP applications 🔨
License: MIT License
A local Docker Environment for building PHP applications 🔨
License: MIT License
I have a forbidden 403 error when accessing apache. All sites are in Sites/info and containers are set up
Hello!
I'm stuck on a 404 while trying to access to any project.
I followed the installation guide and created a new folder test
with a file index.html
.
If I try to go to http://test.localhost, I get a 404 Not found
When access to the localhost got (Mac os x)
"Forbidden
You don't have permission to access / on this server.
```"
MacBook Pro Intel CPU, os 11.3.1
Docker v. 4.2.0 (70708)
Cloned docker-dev repo
Enabled php 7.4 into the .env file
Enabled xdebug as described into the docs
Configured vscode to run xdebug with this launch configuration:
{ "name": "Listen for Xdebug", "type": "php", "request": "launch", "port": 9000 },
Created a info.php page with a variable instantiation and a phpinfo() and added a breakpoint on the first line
Started xdebug via vscode
Navigated info.php page in browser
The page renders correctly, but xdebug won't stop at the breakpoint.
Repeated the procedure with another docker-based solution, same xdebug configuration, it works (so it seems to be a container-related issue?)
Tried adding different vscode configurations (e.g. adding "hostname": "0.0.0.0",
) without success
Tried ssh tunneling within the container and running vscode in this, it works (but it's not a really practical solution)
Hey there,
I sometimes use Phan when I have to bump PHP version on a project, or when I get to work on some companies not-very-well maintained project, to help to not miss anything for the upcoming upgrade.
A tool like that (maybe there's a better one!) could have its place here I think.
It's just an idea, not really an issue or a request, what do you think ?
Hey, I wonder how (if) you all deal with google's oAuth.
For development google accepts http://localhost or http://127.0.0.1 while my app's url goes like xxx.localhost.
Thanks for insights.
Is there a possibility to use symlinks inside the document root?
# /User/username/
- Projects
+ projectA
+ projectB
- Sites
+ projectA --> /User/username/Projects/projectA/public
Currently the symlink points to a directory that does not exist inside the docker container.
Hello from the home of the Baguette,
First of all, thanks for the work, looks really amazing.
I played a little with it while looking to migrate from a vagrant dev env to a docker one, and stamble upon something that looks more like an interrogation than a real issue.
I have a WordPress install configured as : my-site.localhost, which default to php7.4. Works great.
my-site.php72.localhost redirects automatically to my-site.localhost, which is not the wanted behavior, as I would like to try it on PHP7.2 without changing the WordPress options.
Is there a way to achieve that ?
Or should I define a virtual host dedicated to this particular install and simply change the handler for .php files to the version of WordPress I want to try (I'm not sure on how to do that without breaking that smart domain mapping) ?
Thanks !
Line 28 in 9bf7844
There is a "\"no\""
instead of "no"
else I get
Error response from daemon: invalid restart policy '"no\'
(Windows)
Hi!
I would like to solve an issue about xdebug and phpstorm on container php74-fpm. I tried step by step to allow xdebug in container, restart it and connect through the manual on official phpstorm documentation.
As you can see the debugger says Not installed. I have tried to add ports in docker-compose.yml and it still won't work.
There is a bash of the PHP74-fpm container where it says that Xdebug 3.0.1 is activated.
Hello,
Am I wrong to say that sendmail isn't installed be default on this bundle ?
I came across this issue while doing some dev on a Laravel project which skipped sendmail for the default smtp.
If this is the case, do you consider adding it (especially since Mailhog is there) ? Or provide any doc to install it properly ?
Thanks !
Hello guys. Thank you for your work.
Are there any plans to add a PHPMyAdmin or Adminer connection to easily administer the databases ?
Hi, we've used your stack for some years now, big thanks for that!
But each time we've updated we found ourself with some strange behaviour.
When using multiple PHP versions it happened quite often that each of the containers (php74-fpm, php81-fpm, php82-fpm) are actually built using the wrong image. The php74 was acutally running 8.1 or 8.2 and so on.
I'm not quite sure if this is an actual bug in Docker but it seems during the build it mixes up the different Dockerfile
files.
The command docker builder prune
was the solution for us.
Executing this before the actual build process it seems the problem is fixed.
I've built the containers multiple times without any problems.
Maybe this is something you could add to the Update section of the Readme if others are struggling as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.