Skip to content

semka95/common-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to run in rootless docker:

  1. Copy systemd service file to default folder and run it:
cp common-compose.service ~/.config/systemd/user/
systemctl --user enable --now common-compose.service
  1. Create sql file in init folder 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'@'%';

About

Common Docker Compose Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published