Linux serverNETWORK ADMINISTRATIONS

Task-8 which is given by REGex Software Services in a MEARN stack web development intern.

#TASK2.1: The compose should deploy two services (web and DB), and each service should deploy a container as per details below: For web service: — PHP:rc-apache
a. Container name must be php_web.
b. Use image PHP with any apache tag. Check here for more details https://hub.docker.com/_/php?tab=tags.
c. Map php_web container’s port 80 with host port 6000
d. Map php_web container’s /var/www/HTML volume with host volume /var/www/HTML.
For DB service:
a. Container name must be mysql_web.
b. Use image MariaDB with any tag (preferably latest). Check here for more details https://hub.docker.com/_/mariadb?tab=tags.
c. Map mysql_web container’s port 3306 with host port 3306
d. Map mysql_web container’s /var/lib/mysql volume with host volume /var/lib/mysql.
e. Set MYSQL_DATABASE=database_web and use any custom user ( except root ) with some complex password for DB connections.
After running docker-compose up you can access the app with curl command curl server-ip or hostname:6000/ ____________

#TASK2.2: Dockerfile
1) Webserver
2) This is coming from Docker —Content
3) CentOS

Youtube Link:

GitHub Link:
https://github.com/SurajPawar15-smart/Assignment8

source

centos 8

Leave a Reply

Your email address will not be published. Required fields are marked *