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/downwhen donedev/cleanto reset (e.g. if you make a change to a Dockerfile)
dev/shellroot bash shell in php containerdev/mysqlmysql command as root in mysql containerdev/mysqldumpwill 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/upis run (e.g. echo link+port) - TODO: better base php image with more common/useful extensions (+memcache container?)