Skip to content

Instantly share code, notes, and snippets.

@rhamdeew
Last active May 3, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rhamdeew/f414d908b37a945affff to your computer and use it in GitHub Desktop.
Save rhamdeew/f414d908b37a945affff 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