Posted On March 31, 2019

LAMP Stack using Docker

kimconnect 0 comments
blog.KimConnect.com >> Codes , Virtualization >> LAMP Stack using Docker
# Install docker and compose
yum install docker docker-compose -y

# Add user into docker group
usermod -aG docker kimconnect

# Create test file and directory
mkdir -p /var/www/dockerized-lamp/
echo "<?php phpinfo(); ?>" > /var/www/dockerized-lamp/index.php

# Create yaml file
vim /var/www/dockerized-lamp/docker-compose.yml

# Content of yaml file
version: '3'
services:
php-apache:
image: php:7.2-cli
ports:
- 8081:80
volumes:
- ./:/var/www/html
links:
- 'mysql-server'

Leave a Reply

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

Related Post

Reference Entries of Office 365 records for Internal & External DNS

General Office 365 email setup check list: MS requires that each smart-host configuration or send…

Upgrade Virtual Hardware Version in VMM

The following script will upgrade all guest virtual machines from a lower version to the…

PowerShell: How to Convert Multi-Line Texts Into an Array of Strings

Significance: we often run into situations where a list of items (such as usernames, computernames,…
Other project: DragonCoin.com