- Live Reload
- PhpMyAdmin
- Create
.docker/local/.env
based on.docker/local/.env.example
- Prepare your local DB based on
.docker/local/.env
- Start containers using
./env.sh local up
- Stop containers using
./env.sh local down
- No Live Reload
- No PhpMyAdmin
- DB running only in the container
ssh
into the servercd
into the project directory andgit clone
the repo (skip these steps if already cloned)cd
into the project directory andgit pull
(pull often to keep the code updated)- Create
.docker/testing/.env
based on.docker/testing/.env.example
- Start containers using
./env.sh testing up
- Stop containers using
./env.sh testing down
docker ps
and find the DB's container ID- Run
docker exec -it <_DB_container_id_> bash
to enter the container terminal of the DB - In the opened container terminal run
mysql -u root -p
and enter the password configured in.docker/testing/.env
- Now u can run queries like
SHOW DATABASES;
etc.