compose file initially run by podman-compose to create first container.
Might need to run with --initialize
first time to init the datadir directory structure.
systemd unit file generated by podman generate systemd mysql5 --new
.
Then edited ExecStartPre.
setting socket path in /etc/mysql/conf.d/mysql.cnf
needed for default mysql
client command.
Custom mysql setting like tuning cache size etc.. can be put into customconf dir.