Can you please give the option to not initialise the database on startup via an envvar? Otherwise this will not work well with Galera SST, as it attempts to do SST during entrypoint init.
I think this is accomplished by just skipping the entrypoint script (--entrypoint mysqld). It only provides a few things, most of which you don't want on the cluster node anyway:
--user on your docker run: docker run --user mysql ... mysql/docker-entrypoint-initdb.d/ (also not wanted on the replica)@foxx see https://gist.github.com/tanji/919c0dca2e3679acecd7d8cf2a3a886e for an example of how to do it with compose.
Thanks for the solutions! Should this go into the README or something?
Closing old issue.
Most helpful comment
@foxx see https://gist.github.com/tanji/919c0dca2e3679acecd7d8cf2a3a886e for an example of how to do it with compose.