Skip to content

unglevan/vagrant-docker-LAMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Vagrant using docker to setting Apache + Mysql in container

Its simple web service with Apache + MySQL Create 2 container inside docker-host

  1. db

  2. apache

##Usage vagrant up

curl http://localhost:10080

##Share floder

  1. (Mac)./app ~ (docker-host)/vargrant-app ~ (apache)/app

modify code its will update automatically

  1. (Mac)./log ~ (docker-host)/vargrant-log ~ (apache)/var/log/apache2

export log from container to PC

  1. (Mac)./log ~ (docker-host)/vargrant-log/mysql ~ (db)/var/log/mysql

mysql log

  1. (Mac)./data ~ (docker-host)/vargrant-data/mysql ~ (db)/var/lib/mysql

persitant mysql data.

3 and 4 not working

Command

vagrant ssh ssh to docker-host

docker ps to check running container

mysql -uroot -h 192.168.36.10 -p"mypass" to connect mysql

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages