Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making the mysql data persistent #368

Open
wants to merge 1 commit into
base: 3.2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
DROP DATABASE IF EXISTS WSO2AM_STATS_DB;
DROP DATABASE IF EXISTS WSO2AM_BUSINESS_RULES_DB;
DROP DATABASE IF EXISTS WSO2AM_DASHBOARD_DB;
DROP DATABASE IF EXISTS WSO2AM_PERMISSIONS_DB;
-- DROP DATABASE IF EXISTS WSO2AM_STATS_DB;
-- DROP DATABASE IF EXISTS WSO2AM_BUSINESS_RULES_DB;
-- DROP DATABASE IF EXISTS WSO2AM_DASHBOARD_DB;
-- DROP DATABASE IF EXISTS WSO2AM_PERMISSIONS_DB;

CREATE DATABASE WSO2AM_STATS_DB;
CREATE DATABASE WSO2AM_BUSINESS_RULES_DB;
CREATE DATABASE WSO2AM_DASHBOARD_DB;
CREATE DATABASE WSO2AM_PERMISSIONS_DB;
CREATE DATABASE IF NOT EXISTS WSO2AM_STATS_DB;
CREATE DATABASE IF NOT EXISTS WSO2AM_BUSINESS_RULES_DB;
CREATE DATABASE IF NOT EXISTS WSO2AM_DASHBOARD_DB;
CREATE DATABASE IF NOT EXISTS WSO2AM_PERMISSIONS_DB;

GRANT ALL ON WSO2AM_STATS_DB.* TO 'wso2carbon'@'%' IDENTIFIED BY 'wso2carbon';
GRANT ALL ON WSO2AM_BUSINESS_RULES_DB.* TO 'wso2carbon'@'%' IDENTIFIED BY 'wso2carbon';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DROP DATABASE IF EXISTS WSO2AM_DB;
CREATE DATABASE WSO2AM_DB;
-- DROP DATABASE IF EXISTS WSO2AM_DB;
CREATE DATABASE IF NOT EXISTS WSO2AM_DB;
GRANT ALL ON WSO2AM_DB.* TO 'wso2carbon'@'%' IDENTIFIED BY 'wso2carbon';

USE WSO2AM_DB;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DROP DATABASE IF EXISTS WSO2AM_SHARED_DB;
CREATE DATABASE WSO2AM_SHARED_DB;
-- DROP DATABASE IF EXISTS WSO2AM_SHARED_DB;
CREATE DATABASE IF NOT EXISTS WSO2AM_SHARED_DB;
GRANT ALL ON WSO2AM_SHARED_DB.* TO 'wso2carbon'@'%' IDENTIFIED BY 'wso2carbon';

USE WSO2AM_SHARED_DB;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ services:
volumes:
- ./conf/mysql/scripts:/docker-entrypoint-initdb.d
- ./conf/mysql/conf/my.cnf:/etc/mysql/my.cnf
- wso2:/var/lib/mysql
ulimits:
nofile:
soft: 20000
Expand Down Expand Up @@ -99,3 +100,6 @@ services:
condition: service_healthy
volumes:
- ./conf/apim-analytics-dashboard:/home/wso2carbon/wso2-config-volume

volumes:
wso2: {}