learnk8s / laravel-kubernetes-demo

A demo application in Laravel to illustrate deploying to Kubernetes
MIT License
98 stars 67 forks source link

Removed key generation, added apache web server #1

Closed danielepolencic closed 6 years ago

danielepolencic commented 6 years ago

The current Dockerfile is made of two parts:

How you can try the changes:

docker build -t laravel-kubernetes-demo .

You can run the application with:

docker run -ti \
  -p 8080:80 \
  -e APP_KEY=base64:cUPmwHx4LXa4Z25HhzFiWCf7TlQmSqnt98pnuiHmzgY= \
  laravel-kubernetes-demo

And the application should be available on http://localhost:8080.

The container is generic and no APP_KEY was hardcoded.