DEV Community

Discussion on: Docker-Compose a Spring Boot App Backed By MySql

Collapse
 
kswat profile image
kswat

Thanks for the blog.
Can I ask how to secure passwords in docker compose?
I have encrypted password in my application properties, how can I supply that from docker compose? DATABASE_PASSWORD=ENC(myencpassword) and MYSQL_PASSWORD=realpassword ?

Collapse
 
scottshipp profile image
scottshipp

Sorry for the late reply. There are various methods. One of them would be to securely populate an environment variable within the process that launches it, and refer to the environment variable within Docker Compose.