Networking & Domains
Laradock defaults to plain localhost access, but most projects eventually need a real-looking domain or trusted certificates inside the workspace. Both are quick, host-level changes.
Use a custom domain
Use a real domain instead of the Docker IP. Assuming your domain is laravel.test:
- Map it to localhost in your
/etc/hosts:127.0.0.1 laravel.test - Open
http://laravel.test.
Optionally set the server name in your NGINX config:
server_name laravel.test;
Add CA certificates
To install your own CA certificates, drop them in the workspace/ca-certificates folder. They're added to the workspace container's system CA store on build.