- Install docker and docker-compose
- docker-compose exec workspace bash
- composer install
- docker-compose up -d nginx
- docker-compose logs nginx to troubleshoot
To setup ssl certificate with nginx in laradock, follow these steps:
-
Generate certificates manually in personal laptop using certbot: sudo certbot certonly --manual
-
Verify by transfering the files to the server and running nginx on http
-
Once the domain is verified, transfer the certificate files in the laradock/nginx folder scp -i winuallconnect.pem fullchain.pem [email protected]:~/.
-
Modify laradock/nginx/Dockerfile and laradock/nginx/sites/default.conf
-
Build the nginx image again
-
Modify conf file to accept requests on 443