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

Manual Sync for Office 365 Azure-AD Integration

1. Perform Prerequisites:* a. Install Dot Net Framework 4.5 )* b. Install Windows Management Framework…

PowerShell: Quick Snippet to Remove Virtual Machine Snapshots in VMM

$vmNames=@( 'MACHINE1', 'MACHINE2' ) foreach($vmName in $vmNames){ $checkpoint = Get-SCVMCheckpoint -VM $vmName if($checkpoint){$checkpoint|%{Remove-SCVMCheckpoint -VMCheckpoint $_…

Kubernetes: Cert-Manager x509 ECDSA verification failure

Symptoms Error from server (InternalError): error when creating "kimconnect-cert.yaml": Internal error occurred: failed calling webhook…