|
|
|
|
|
by seizethegdgap
1000 days ago
|
|
Yeah, she's a big girl, but having one flat file and one systemd process is infinitely better than juggling 85 of each. I have the systemd process start after docker.service, and most of my containers have a "depends_on" argument so they don't all try to boot at once. All of the containers also push logging to a Splunk instance, which adds 9 lines per container, which increases the file by 765 lines. |
|
If those 9 lines are identical you can probably simplify quite a bit with extension fields and yaml anchors. [0]
You would put
As a single line under each container, and then define it elsewhere. The example on the docs page is for logging, but you can also simplify other fields too, like “depends on”.[0] https://docs.docker.com/compose/compose-file/compose-file-v3...