Setting up a docker local development using <whatever>.docker as local domain without configuring host file
This repository gives basic source code for setting up a local development environment using Docker, Traefik, Dnsmasq, and various Content Management Systems (CMS) such as PrestaShop, Kirby, and WordPress.
- Docker installed on your machine.
- Docker Compose installed.
- Clone this repository.
- Run shell script
./configure-dnsmasq-macos.shto configure Dnsmasq. - Run shell script
./create-certs.shto create SSL selfsigned certificates. - Run shell script
./create-network.shto create a local network for Traefik. - Run
docker compose up -dto start the services. - Go to your local CMS environment and add labels to your services in
docker-compose.override.ymlto enable Traefik to route traffic to your services (Seeexample/*/docker-compose.override.ymlfor examples). - Visit
https://myproject.dockerto see your local website. - Run
docker compose downto stop the services.