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.sh
to configure Dnsmasq. - Run shell script
./create-certs.sh
to create SSL selfsigned certificates. - Run shell script
./create-network.sh
to create a local network for Traefik. - Run
docker compose up -d
to start the services. - Go to your local CMS environment and add labels to your services in
docker-compose.override.yml
to enable Traefik to route traffic to your services (Seeexample/*/docker-compose.override.yml
for examples). - Visit
https://myproject.docker
to see your local website. - Run
docker compose down
to stop the services.