Skip to content

Instantly share code, notes, and snippets.

@evrial
Forked from rhamdeew/README
Last active May 3, 2016 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evrial/831bc5ec151ea06c4d16ed092dc015a3 to your computer and use it in GitHub Desktop.
Save evrial/831bc5ec151ea06c4d16ed092dc015a3 to your computer and use it in GitHub Desktop.
rhamdeew/lamp description
1. sudo docker pull rhamdeew/lamp
2. sudo docker run -v /your_empty_project_path/:/var/www/srv/ -p 80:80 -t -i rhamdeew/lamp /bin/bash
3. in container: cp -R /var/www/example/* /var/www/srv
4. in container: cd /var/www/srv/
5. in container: ./start.sh
6. open http://localhost/1.php
Your project structure
projectname/
/www -> php files
/etc/php.ini -> custom php.ini
/db/db.sql ->database dump
/db/db.txt ->database settings
Example found in /var/www/example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment