Linux referred to the usually free, unix-like Operating systems based on the Linux kernel and is GNU GPL based software.
It is now possible to server static contents including html files using Android Device as Web Server.Īrticles Related to Android Device as Web Server : Basics and Resources These Applications are basically very rudimentary form of our WAMP, XAMMP like localhost Web Servers but as Android itself is like a Network Installation Server Edition of Linux distro, the localhost is the real IP and port 80 can be controlled. You can search in Google play with the name of two apps :
This a basic article on Android Device as Web Server, we will not actually guide install any CMS in this article on Android Device as Web Server.Īndroid Device as Web Server : The Available Apps on Google Play for Running Web Server Android actually somewhat like a server edition of Linux with GUI installed later, this is why you can broadcast video on specific port from your Android Device with some of the Camera Apps available. All Android with ISP level SIM card is a VPN and has a Static IP. The basics is actually easy as Android is Linux punch with Java EE.
Next, open your browser and go to you will see this.Android Device as Web Server – means, you can use your Android Device as your own dedicated Web Server. Next, run this command: :~$ sudo docker-compose up -dĢ.- Deploy a LAMP server using Docker compose Pay attention to the indexing of the file for it to be valid. This part is somewhat explicit.įinally, you have to define the ports of the application.Īt the end, the file will look like this.
First, the Timezone, then the empty password option is denied and finally the users and their passwords. In the environment, we define the configuration of MariaDB. First, we define the image, in this case, the 10.3.Īgain, in volumes, we define a directory of our host ( /var/lib/mysql) to receive the data from the mariadb directory. Now it is MariaDB’s turn to complete LAMP. Then, for the php-apache service to become database dependent, specify it with the word links and define ‘mariadb’. So the DocumentRoot of the image will be mounted on /var/www/html of our system. I explain myself if we did not do it this way, every time there are changes in the image, we would have to rebuild it and we would probably lose the data.
In the volume section, it is advisable to mount the volume of the container on our host system. Therefore, the 80 is exposed to the host and in the guest. Ports refer to which port will be exposed from Docker. Image refers to the image Docker you will use. You can replace the php-apache name with the one you want. Php -apache is the first service and it is necessary to define some options. In this case, the first service to raise is php-apache. Services: they are each and every one of the application services that are going to be defined in the file. I now proceed to briefly explain this first part of the file. I will use for this case, PHP version 7.3. :~$ nano docker-compose.ymlįirst, let’s define the image of PHP and Apache together. In my case, I will use nano in the terminal. Locate it wherever you want and use the text editor of your choice.
Second, it is necessary to create the file with extension YML. Then, create a new PHP file to test the image when is ready. Apache y PHP.įirst, create a new folder called test and inside it, create another folder called DocumentRoot. On the other hand, if we have successfully deployed one or several images, just save the file to reuse it whenever we want. For example, if we pass this file to another computer, and display it, we will get the same result as in our computer. In this file we will put all the configuration of the images, and then with raise with the following command: :~$ sudo docker-compose up -d Deploy a LAMP server with docker-compose What is docker-compose?ĭocker-compose is a utility that allows you to deploy applications through the definition of a YAML file. Then, enter the user password and finally wait for the process to finish.