Last active
November 21, 2015 16:41
-
-
Save svdmitrij/6806f7ee3cd7f870d52d to your computer and use it in GitHub Desktop.
Run apache2 with php, mysql, redis on windows box. "Docker Toolbox" must be installed and mariadb container created (by hand in kitematic).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd "C:\Program Files\Docker Toolbox\kitematic" | |
set name=games | |
set DOCKER_CERT_PATH=C:\Users\dmitry\.docker\machine\machines\default | |
set DOCKER_HOST=tcp://192.168.99.100:2376 | |
set DOCKER_TLS_VERIFY=1 | |
docker start mariadb | |
docker rm -f %name%-redis | |
docker rm -f %name% | |
docker run -d --name %name%-redis redis | |
docker run -d -p 80:80 --name %name% --link %name%-redis:redis | |
--link mariadb:db -v /c/Users/dmitry/Documents/NetBeansProjects/%name%:/var/www/html nimmis/apache-php5 | |
REM config php app: mysql db host named db, redis host - redis | |
REM Now open 192.168.99.100 in browser. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment