Skip to content

Instantly share code, notes, and snippets.

@svdmitrij
Last active November 21, 2015 16:41
Show Gist options
  • Save svdmitrij/6806f7ee3cd7f870d52d to your computer and use it in GitHub Desktop.
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).
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