This package has been archived.
Some apps has been moved to ricventu/docker-apps
Simple development environment for Docker
git clone [email protected]:ricventu/dev-in-docker.git
Copy .env.example
to .env
and edit variables as your need
Add to ~.bashrc
or .zshrc
:
function did() {
( cd path/to/dev-in-docker && ./did $* )
}
where path/to/dev-in-docker
is the path to dev-in-docker clone
now you can exec all docker-composer commands with did
did up -d --build
Virtual hosts configurations are located in nginx/sites
Virtual hosts configurations are located in httpd/sites
You can add install .sh
scripts to php/install.d
directory
Logs from containers are bind to LOG_PATH
dir
Add to ~.bashrc
or .zshrc
:
function didphp() {
did run --rm -v $(pwd):/workdir/ -w /workdir/ php7.3 php $*
}
Now you can run php commands with didphp
didphp -v
Add to ~.bashrc
or .zshrc
:
function didssh() {
did exec php7.3 bash
}
Now you can connect to php container with didssh