My lab in Docker with domain laby.ooo
This is to demo the a Web application interacting with a Database. All is behind a Reverse Proxy.
The application is a Grafana dashboard to visualize Prometheus metrics. HTTPS SSL traffic is offloaded by Traefik.
/etc/hosts
127.0.0.1 grafana.laby.ooo
127.0.0.1 laby.ooo
127.0.0.1 www.laby.ooo
openssl genpkey -algorithm RSA -out ca.key
openssl req -new -x509 -key ca.key -out ca.crt
# Or can use the existing CA in `certs` folder
This is to make Chrome trust the above SelfSigned custom generated CA
- Double click on ca.crt to add it to MacOS Keychain
- Open Keychain -> Highlight the ca.crt -> Right click -> Get info
- Change to Trust
cd certs
openssl req -new -key laby.ooo.key -out laby.ooo.csr -subj "/CN=laby.ooo"
cd certs
openssl x509 -req -in laby.ooo.csr -CA ./ca/ca.crt -CAkey ./ca/ca.key -CAcreateserial -extfile ./ca/openssl.ss.cnf -out laby.ooo.crt -days 730 -sha256
# Stand at root of this repo folder
docker-compose up
- Open Chrome or whatever browser
- Type https://grafana.laby.ooo
- Default username and password are 'admin'
- Add whatever Prometheus dashboard available on Grafana dashboards page