Report this

What is the reason for this report?

Setting up a Web App With Docker Containers - Security

Posted on December 23, 2022

I am currently looking at creating web apps with Laravel and Docker Compose as in the following tutorial:

https://www.digitalocean.com/community/tutorials/how-to-install-and-set-up-laravel-with-docker-compose-on-ubuntu-20-04

My question is:

Isn’t it a very large security risk to store login credentials on a server? The tutorial instructs to store your MySQL (or other database) username and password in your ~/example/.env file. Is there any way around this that is more secure?

Thank you for your help, -catbyte

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.