mcneely / php-skeleton Goto Github PK
View Code? Open in Web Editor NEWPHP Docker Skeleton
PHP Docker Skeleton
consider using LE for cert management, and some sort of proxy/lb on the front end to manage your projects. assuming you have more than one running at any given time this will get complicated. the company I work for does both, and works well with docker-compose/swarm. (this also works really well with something like ngrok.io where you can have domains live on the internet tunnel'd to your local machine)
also, highly recommend looking into using monitoring tools on your projects. xdebug is great for local, but how are your services running in prod? look at extending your apps with stuff like prometheus and jaeger. yes, those things get hard running at scale, but by that point you hopefully have budget to go with a managed solution like datadog or whatever.
overall, nice work, seems like it has helped you manage both your development workflow and production environments, which is the whole point, rite?
this one is tricky, mainly because you need these dev/buildtools in order to compile. take a look around at other fpm/php dockerfiles for the usage of multi-stage builds - which allow you to build another image after you compile in the first one, copy the binaries/objects you need, and install just the runtime dependencies. you'll likely see a large (20-40%) reduction in image size.
in the event you change your entrypoint, this would trigger a full rebuild
while not necessarily a "bad practice", managing configuration inside a dockerfile is a bit obfuscated, consider either copying the configuration into it during the build, or doing these actions at runtime in entrypoint.sh
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.