D
D
Denwebart2016-02-28 03:24:11
PHP
Denwebart, 2016-02-28 03:24:11

Docker as a local web server (replacing Open Server, Xampp, etc.)?

Now I hear more and more about docker. I'm trying to understand what it is.
I am looking for articles on setting up docker on windows step by step.
Tell me, can docker be used as a web server for local development (WAMP) and be a replacement for Open Server, Xampp on Windows? And where to read, how to set it up for this purpose, so that it is understandable and in simple language?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ivan, 2016-03-14
@Denwebart

Of course, strange answers are marked with solutions, which surprises me a little.
I’ll tell the author of the question a little about vagrant and docker, what’s the difference.
Vagrant is just a virtualbox wrapper for creating a pre-configured virtualbox machine. There is a benefit from it, but only for developers. On a production server, you will not be able to deploy the same environment using vagrant.
Docker, for today, is a whole set of tools. Docker itself is a client-server containerization system, the docker server must run in Linux, the client is anywhere.
For Windows, docker has its own assembly, which includes a docker server / client, docker machines, docker compose.
docker-machine will run a very lightweight linux virtual machine for you, and on it with a docker server. From Windows (host) you will access this virtual machine through a standard docker client.
Docker, unlike vagrant, will allow you to have identical environments on the dev server, and on the production, and on the test, and wherever possible. This distinguishes him favorably from the vagrant.
Due to the aforementioned shortcoming and focus only on the dev-environment, Vagrant is slowly dying off.
As a result, I advise you to start with the docker now, but score on the vagrant and without the need to forget your head with unnecessary technology, since there is something to fill your head with :)
Regarding how to specifically deploy lamps or something similar on the docker, first read Getting started at the office. docker site, then take a look at the docker images for the web, there are several of them and each describes interesting approaches.
Good luck, I hope my comment was helpful to you.

Z
zooks, 2016-02-28
@zooks

You don't need Docker, you need Vagrant.

O
OnYourLips, 2016-02-28
@OnYourLips

You need vagrant, and I advise you to try it from https://puphpet.com/ (constructor).

A
Alorian, 2017-07-26
@Alorian

An article on how to use docker as a local web server
https://verstaem.com/devops/docker-php-development/
The best use case on windows is described in the section
"Accessing containers through nginx reverse proxy"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question