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

Some Common Gitlab Commands

To ignore SSL Cert errors: git config --global http.sslVerify "false"   # checkout changed file…

PowerShell: Find Process IDs of a Locked File and Kill It

There's a newer iteration of this function here. $targetFile='C:\Users\kimconnect\Desktop\testfile.csv' function killPidLockedFile($filename){ if (!(Get-Command handle.exe -ErrorAction…

PowerShell: Remove A-record in Bluecat

$bluecatUri='https://bluecat.kimconnect.com/Services/API' $bluecatUsername='bluecat-service-api' $bluecatPassword='SOMECOMPLEXPASSWORD' $hostRecord='testrecord.kimconnect.com' function loginBluecat{ param( $username, $password, $uri ) $proxy = New-WebServiceProxy -Uri…