php-docker-good-defaults
ama
php-docker-good-defaults | ama | |
---|---|---|
2 | 10 | |
362 | 347 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | over 2 years ago | |
Dockerfile | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
php-docker-good-defaults
-
Dockerfile best practice
Yes. If you would like an example with a good explanation on how to write Dockerfiles with a Laravel app from scratch, check out Bret Fisher's PHP (Laravel) defaults example. The README and comments in the Dockerfiles offer a great explanation as to why he's doing the things that he's doing.
-
Deploying Laravel Mix using Docker?
Finally, if you want an example of using two Dockerfiles where one is a base Dockerfile and the other one is a production one that uses the base Dockerfile, then check out this repo to get a better idea of what I'm trying to describe.
ama
-
The Hater's Guide to Kubernetes
If you want to stick on one machine, you can always just use a single node Docker Swarm to get the fully automated zero downtime deploys you want with Docker Compose:
https://github.com/BretFisher/ama/discussions/146
-
Navigating Docker With Captains - Bret Fisher
Follow Bret here
-
Container Training
Check out Bret Fishers courses and content - https://www.bretfisher.com/
-
awesome-swarm
This Awesome List is maintained by Bret Fisher (and coming soon, maintainers #3). This is a curated list of working tools and resources for using Swarm. It is not an official list, but a community effort to help people find the best tools and resources for Swarm in 2023 and beyond.
-
who do you follow?
https://www.bretfisher.com/ - awesome guy, awesome discord (https://devops.fan). Awesome Talks
- Ask HN: What is the best source to learn Docker in 2023?
- The Docker, Kubernetes, Terraform, and AWS crash course series
-
Fully Docker support Example Bot
Composer is not meant to run in production. It is only meant for development or building images. Make sure to read Getting started with swarm mode and check this if you want to use run your build image on a proper environment. (recommended)
-
Dockerfile best practice
I don't know if I would call myself an expert, but worrying about security is a big concern of mine and my job. While there are some security benefits to running your app in a container, you're correct in thinking there are some things to keep in mind while writing your Dockerfiles and using Docker. Check out Bret Fisher's write up on security concerns using Docker. This is the second time that I've mentioned him. He's a Docker Captain and recognized by Docker as an expert. His advice is sound.
-
docker-compose or docker swarm for 1 host
Only one host for production environment. What to use: docker-compose or single node swarm? · Issue #8 · BretFisher/ama (github.com)
What are some alternatives?
docker-compose-laravel - A docker-compose workflow for local Laravel development
Laradock - Full PHP development environment for Docker.
cluster-api - Home for Cluster API, a subproject of sig-cluster-lifecycle
awesome-swarm - All the awesome tools, docs, and training on Docker and Mirantis Swarm Mode (SwarmKit)
container.training - Slides and code samples for training, tutorials, and workshops about Docker, containers, and Kubernetes.
ama - [[I'm slow at replying these days, but I hope to get back to answering questions eventually]] Ask me anything!
Docker-DiscordJs - This is an example application that provides a multi-stage Docker Discord Bot that runs in shards.
deploying-laravel-app - The different stages to learning how to deploy PHP code
ctop - Top-like interface for container metrics
Docker Swarm - Source repo for Docker's Documentation
Portainer - Making Docker and Kubernetes management easy.