-
Keep in mind that on each system reboot, you'll have to run the following commands to bring up the development environment:
-
cdto the root directory of this repository -
Execute
make runwith the optionalVERBOSE=trueandNO_DOCKER_SYNC=trueflags, depending on your needs.
-
-
If you want to connect to the DBMS container from your host system, remember to set as
hostvalue127.0.0.1(your HOME IP) and asportthe value defined by either theMYSQL_PORTorPOSTGRESQL_PORTin the.envfile.
The same considerations applies to theRedisservice. -
If you want to connect your project to a DBMS remember to use the standard ports for each system (i.e.
3306for MySQL and5432for PostgreSQL) and for the connectionhostuse the name of the DBMS (mysqlorpostgresql).
The same considerations applies to theRedisandMinioservices. -
If for some reason the synchronization made by
Docker Syncdoes not perform correctly and seems unresponsive, simply kill every running container and reboot the Docker Desktop application (on MacOS). -
The
Makefilepresent in the root folder of the project defines some interesting tasks to be executed:
-
Run
make buildor simplymaketo build the environment -
Run
make stopto kill running containers of the environment -
Run
make containers-listto have an overview of all running containers -
Run
make freshto drop Docker-Sync volume and re-synchronize it (only available on MacOS) -
Run
make ttyto spawn a bash session from theworkspacecontainer -
Run
make webserver-ttyto spawn a bash session from the web server of choice (apacheornginx) container
-
Note that adding or editing cron jobs, Supervisor programs, SSH keys or SSL certificates requires a full rebuild of the environment (by running
makeormake build). -
On MacOS, if you decided to opt out from using the Docker-Sync tool, you may want to add to your
.bashrc(or.zshrc) file theNO_DOCKER_SYNC=truevariable, in order to remove the need of typing it every time you want to start/stop/access your Docker containers. -
If you decided to always display a verbose output from the containers, you may want to add to your
.bashrc(or.zshrc) file theVERBOSE=truevariable, in order to remove the need of typing it every time you want to start your Docker containers.