Let’s assume that I have a multi-service application that is supposed to be built using docker-compose.
We have two services A and B. A is an internal service and B is an external one that communicates with the outside world.
HTTP Requests ---> B ---> A
To make A more secure it requires an API key to be used to access it. There is a command line script that can be called to generate a key.
Hence the problem. How to generate the key during the launch of A and passing it to B using docker compose?
Use shared volumes?
Generate secrets on the go? Is that possible?
What?
I tried nothing yet.