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/hosts
file: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.yml
prior to starting the containers
-
Set the
VIRTUAL_HOST
environment variable in the project'sdocker-compose.yml
file to the desired domain name. (e.g.VIRTUAL_HOST=example.docker
) -
Same value in your
/etc/hosts
file (e.g.127.0.0.1 example.docker
) -
Add the project to the
nginx-proxy
network by adding the following to the project'sdocker-compose.yml
file:networks: <project-name>: external: name: localdev