How to modify existing docker-compose file from java code

Viewed 173

I have a docker-compose file that has few services defined. I want to add another service in the runtime using java code. Are there any libraries or any method to convert docker-compose files into the java object and process it? (what is on my mind was text processing)

1 Answers

docker-compose files use YAML. So a YAML parser for Java like eo-yaml should be enough.

Related