-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
391 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3.8' | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0 # You can choose another version of MySQL if needed | ||
container_name: matryriska-mysql | ||
environment: | ||
MYSQL_ROOT_PASSWORD: rootpassword # Set your root password | ||
MYSQL_DATABASE: matryriska # This creates the database on startup | ||
MYSQL_USER: matryriska # Optional: Set up an additional user | ||
MYSQL_PASSWORD: StrongPassword123 # Optional: Set a password for the user | ||
volumes: | ||
- mysql_data:/var/lib/mysql # Persist MySQL data | ||
ports: | ||
- "3306:3306" # Expose MySQL port | ||
|
||
volumes: | ||
mysql_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
[ | ||
{ | ||
"name": "risk", | ||
"columns": [ | ||
{ | ||
"name": "risk_uuid", | ||
"type": "varchar(36) primary key" | ||
}, | ||
{ | ||
"name": "risk_name", | ||
"type": "varchar(255) not null default 'New Risk'" | ||
}, | ||
{ | ||
"name": "risk_description", | ||
"type": "text not null" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "scenario", | ||
"columns": [ | ||
{ | ||
"name": "scenario_uuid", | ||
"type": "varchar(36) primary key" | ||
}, | ||
{ | ||
"name": "risk_uuid", | ||
"type": "varchar(36) not null" | ||
}, | ||
{ | ||
"name": "scenario_description", | ||
"type": "text not null" | ||
}, | ||
{ | ||
"name": "threat_description", | ||
"type": "text not null" | ||
}, | ||
{ | ||
"name": "add_note", | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "scenario_risk", | ||
"columns": [ | ||
{ | ||
"name": "scenario_uuid", | ||
"type": "varchar(36) not null" | ||
}, | ||
{ | ||
"name": "likehood", | ||
"type": "int not null" | ||
}, | ||
{ | ||
"name": "reputation", | ||
"type": "int not null" | ||
}, | ||
{ | ||
"name": "operational", | ||
"type": "int not null" | ||
}, | ||
{ | ||
"name": "legal_compliance", | ||
"type": "int not null" | ||
}, | ||
{ | ||
"name": "financial", | ||
"type": "int not null" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "countermeasure", | ||
"columns": [ | ||
{ | ||
"name": "ctm_uuid", | ||
"type": "varchar(36) primary key" | ||
}, | ||
{ | ||
"name": "scenario_uuid", | ||
"type": "varchar(36) not null" | ||
}, | ||
{ | ||
"name": "title", | ||
"type": "varchar(255) not null default 'New Countermeasure'" | ||
}, | ||
{ | ||
"name": "description", | ||
"type": "text not null" | ||
}, | ||
{ | ||
"name": "solved", | ||
"type": "int not null default 0" | ||
}, | ||
{ | ||
"name": "solved_description", | ||
"type": "text" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.