Sign inSign up

mikkiskarjis/web

By mikkiskarjis

•Updated over 5 years ago

This web Docker image installs httpd daemon along with other useful tools to run a website.

Image
0

200

mikkiskarjis/web repository overview

⁠About

This dockerfile is used to deploy a web server contains Apache, MySQL (which you need to configure at the start) and PHP on Debian 10 operating system.


⁠Instructions

Build the image with

docker build . -t IMAGE_NAME

Run the container with

docker run -it -p 8080:8080 IMAGE_NAME

This will start the default commands to setup MySQL.

⁠Configuring MySQL
  • Set root password? [Y/n] – Type y and press Enter to create a strong root password for your database.
  • Remove anonymous users? [Y/n] – Type y and press Enter.
  • Disallow root login remotely? [Y/n] – Type y and press Enter.
  • Remove test database and access to it? [Y/n] – Type y and confirm with Enter.
  • Reload privilege tables now? [Y/n] – Type y and confirm with Enter.

The output confirms that your MariaDB installation is now secure.

After this the web server is done. You can make a dockerfile of your own if you wish to add PHPMyAdmin or WordPress to the image.


⁠Help

Setting up Apache web server along with the tools used can you be tricky.

If you run into server specific issues you can try your luck https://www.reddit.com/r/apache/⁠

If you need help with the Debian operating system you can seek help from here https://www.reddit.com/r/debian/⁠

If there are problems with Docker in general, head out to https://www.reddit.com/r/docker/⁠

Tag summary

Content type

Image

Digest

Size

140 MB

Last updated

over 5 years ago

docker pull mikkiskarjis/web