docker run --rm -it -w /app -v .:/app alpine/openssl genrsa -des3 -out rootCA.key 4096
docker run --rm -it -w /app -v .:/app alpine/openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.crt
- save passpharse and rootCA.key & rootCA.crt in a vault
- add root certificate
rootCA.crt
in your OS (mac: https://www.eduhk.hk/ocio/content/faq-how-add-root-certificate-mac-os-x // windows: https://www.youtube.com/watch?v=Ddsrk68TGI0)
- .env (edit and add the root certificate passpharse)
- www/
- laravel project (describe as www.abenevaut.local)
- traefik-local/
- rootCA.key (do not commit)
- rootCA.crt (do not commit)
- Dockerfile (describe as traefik.abenevaut.local - generate a SSL certificate for *.abenevaut.local used by traefik)
- traefik.yaml
- traefik-dynamic.yaml
- docker-compose.yml
- edit
/etc/hosts
127.0.0.1 traefik.abenevaut.local www.abenevaut.local
docker-compose up -d www traefik
An error on docker-compose.yml