Quick and easy way to setup a local development environment with a reverse proxy, and database viewer.
-
Clone this project locally.
-
Make sure the docker daemon is running.
-
Run
docker network create localdev. -
Add the following to your
/etc/hostsfile:127.0.0.1 localdev
-
From the project root, run
docker compose up -d.
To use either of the database tools, simply comment out the other in the
docker-compose.ymlprior to starting the containers
-
Set the
VIRTUAL_HOSTenvironment variable in the project'sdocker-compose.ymlfile to the desired domain name. (e.g.VIRTUAL_HOST=example.docker) -
Same value in your
/etc/hostsfile (e.g.127.0.0.1 example.docker) -
Add the project to the
nginx-proxynetwork by adding the following to the project'sdocker-compose.ymlfile:networks: <project-name>: external: name: localdev