chashikajw
chashikajw

Reputation: 828

How to modify existing docker-compose file from java code

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)

Upvotes: 2

Views: 348

Answers (1)

rmunge
rmunge

Reputation: 4248

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

Upvotes: 2

Related Questions