What is the problem you're trying to solve
init container(s) run before service container in sequence and can prepare environment. Think "containerized entrypoint"
We might want to support such init containers in compose spec, with obvious mapping for Kubernetes
Describe the solution you'd like
syntax proposal and lifecycle document
Additional context
See docker/compose#6855