Create a WAMP environment with docker
Here is a simple way to make a WAMP server with Docker.
WAMP is an architecture based on Windows,Apache,MySQL,PHP.
But actually, with Docker, we are not constrained by using Windows, so the real architecture is XAMP. (X means all OS)
To do it, first, install Docker on your computer / server.
Create these files in your project folder:
./Dockerfile
./docker-compose.yaml
./www/public/index.php
Put your PHP code in ./www/
directory. The public directory would be ./www/public/
in this case.
The Dockerfile
Note: the highlighted lines are about installing composer and postgresql database extension. Comment them if you don’t need them !
The docker-compose.yml
The PHP code
And then do docker-compose up
and target the port 80 of your machine (generally http://localhost:80)
Don’t forget to add tags to freeze the dependencies and images you installed !
Practice code with the "Quick Sort" algorithm
Enhance your coding skills by learning how the Quick Sort algorithm works!
The SOLID/STUPID principles
Learn what are the SOLID and STUPID principles with examples
Create a Docker Swarm playground
Let's create Docker Swarm playground on your local machine
Create an Ansible playground with Docker
Let's create an Ansible playground with Docker
HashiCorp Vault - Technological watch
Learn what is HashiCorp Vault in less than 5 minutes !
Setup a Kubernetes cluster with K3S, Traefik, CertManager and Kubernetes Dashboard
Let's setup step by step our own K3S cluster !
How to internationalize an AstroJS website while maintaining good SEO ?
We will see how to create an implementation of i18n with AstroJS
LFTP - Deploy an application in command line
Here we will see how to automatically deploy an application with lftp in command line.