added dbs etup steps and update forgejo compose volumes
This commit is contained in:
parent
6dde5dcfc7
commit
52106b2d80
2 changed files with 23 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ services:
|
||||||
- FORGEJO__server__SSH_PORT=2222
|
- FORGEJO__server__SSH_PORT=2222
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/git_data:/data
|
- /git_data:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
ports:
|
ports:
|
||||||
|
|
|
||||||
22
~host-setups/SQL_DB_VMs/DB_Setup.sh
Normal file
22
~host-setups/SQL_DB_VMs/DB_Setup.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
##login to the DB
|
||||||
|
mariadb -h 172.16.201.150 -u root -p
|
||||||
|
|
||||||
|
##initialize databses with usernames and passwords
|
||||||
|
##Forgjo Prod
|
||||||
|
CREATE DATABASE forgejo_prod CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
CREATE USER 'forgejo_prod'@'%' IDENTIFIED BY 'Prod_Password_123!';
|
||||||
|
GRANT ALL PRIVILEGES ON forgejo_prod.* TO 'forgejo_prod'@'%';
|
||||||
|
FLUSH PRIVILEGES;
|
||||||
|
|
||||||
|
##Forgjo Test
|
||||||
|
CREATE DATABASE forgejo_test CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
CREATE USER 'forgejo_test'@'%' IDENTIFIED BY 'Test_Password_456!';
|
||||||
|
GRANT ALL PRIVILEGES ON forgejo_test.* TO 'forgejo_test'@'%';
|
||||||
|
FLUSH PRIVILEGES;
|
||||||
|
|
||||||
|
##Forgjo Dev - with applied limits
|
||||||
|
CREATE DATABASE forgejo_test CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
CREATE USER 'forgejo_test'@'%' IDENTIFIED BY 'Test_Password_456!';
|
||||||
|
GRANT ALL PRIVILEGES ON forgejo_test.* TO 'forgejo_test'@'%';
|
||||||
|
FLUSH PRIVILEGES;
|
||||||
|
|
||||||
Loading…
Reference in a new issue