WIP; Need to do a lot more stuff, but this is as far as I got with the time I had…
Trying to get a decent docker
setup for some php dev.
once docker is installed
create a .env
file using dot.env
as a template
dev/up
- http://localhost/
- *note: takes a few for the mysql container to startup - may see PDO error
- *note: self-signed snake-oil cert
dev/down
when donedev/clean
to reset (e.g. if you make a change to a Dockerfile)
dev/shell
root bash shell in php containerdev/mysql
mysql command as root in mysql containerdev/mysqldump
will dump mysql db (for updatingdocker/mysql/default_schema.sql
)
To install a composer dependency:
dev/composer require google/apiclient
- TODO: better readme
- TODO: bootstrap script to check dependencies
- TODO: self signed ssl cert for nginx
- TODO: informational output after
dev/up
is run (e.g. echo link+port) - TODO: better base php image with more common/useful extensions (+memcache container?)