Ahoy, fellow sailors! Welcome to the repository of our "Dock & Roll" series, where we embark on an epic adventure to explore the seas of Docker! In this particular quest, we'll be learning how to Dockerize a PHP application. Are you ready to set sail? Then let's hoist the anchor and dive right in! ⚓️🌊
Before we cast off, ensure you have the following installed on your vessel:
If you're a landlubber and new to Docker, check out our previous adventure, Docker 101: A Beginner's Guide to Docking Your Ship to get your feet wet! 🌊
Ready to hoist the Jolly Roger and set sail? Follow these steps to get your PHP app running on Docker:
- Clone this repository:
git clone https://github.com/EminCimen/DockerPHP.git
- Navigate to the project directory:
cd DockerPHP - Build the Docker image:
docker build -t DockerPHP . - Run the Docker container:
docker run -d -p 8080:80 --name my-php-app DockerPHP - Navigate to
http://localhost:8080in your browser to view the app.
Eager for more "Dock & Roll" adventures? Be sure to keep an eye out for upcoming episodes in our series, as we continue to sail the high seas of Docker! ⛵️🐬
Happy sailing, mateys! 🏴☠️
Dont forget to check out the Docker 101: A Beginner's Guide to Docking Your Ship to get your feet wet! 🌊
Follow me on Twitter, Linkedin or Medium for more updates and tips! 🐦
Made with ❤️