Docker Community Forums

Share and learn in the Docker community.

Noob question : Docker deploy


(Salimo1994) #1

As I’m still new to docker , I do have a beginner question .

Let’s assume I have already created my Docker-environment and finished my PHP app and now I want to deploy it to a web server. What should I exactly do ? (I have been using ssh to pull the code from my git repository to my remote server) . In other word should I install docker on my remote server , pul lthe image form docker hub and run the container that I have already set up ? oder what ? I haven’t found any answer over the web until now .


(Bryce Ryan) #2

There are some great resources out on the web with guidance/examples of containerized PHP apps. Perhaps the one that most closely follows the “standard” docker practices is this one: https://bitpress.io/simple-approach-using-docker-with-php/ . On the Docker site, there is some information about PHP in containers: https://docs.docker.com/samples/library/php/ . Another one from hacker noon is https://hackernoon.com/deploying-php-apps-with-docker-8bccae5a33f7

Welcome to Docker. Have a great time!