The usage of separate containers with envsubst and copy-datadir makes the development difficult, as sometimes the new files are not updated. We are trying to like in Kubernetes (init containers) but we are not in Kubernetes.
I think we should include envsubst only in the concerned containers: security-proxy, datafeeder and ogc-api-records. And execute this initialization in the containers.
We should think about the Kubernetes usage too.