- Copy systemd service file to default folder and run it:
cp common-compose.service ~/.config/systemd/user/
systemctl --user enable --now common-compose.service- Create
sqlfile ininitfolder with any name, write any init code, for example:
CREATE DATABASE IF NOT EXISTS `gitea`;
CREATE USER IF NOT EXISTS 'gitea'@'%' IDENTIFIED BY 'password';
GRANT ALL ON `gitea`.* TO 'gitea'@'%';
CREATE DATABASE IF NOT EXISTS `nextcloud`;
CREATE USER IF NOT EXISTS 'nextcloud'@'%' IDENTIFIED BY 'password';
GRANT ALL ON `nextcloud`.* TO 'nextcloud'@'%';
CREATE DATABASE IF NOT EXISTS `vaultwarden`;
CREATE USER IF NOT EXISTS 'vw'@'%' IDENTIFIED BY 'password';
GRANT ALL ON vaultwarden.* TO 'vw'@'%';