Skip to content

Commit

Permalink
Add support to MySQL/MariaDB. Closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
eliezio committed May 29, 2019
1 parent 44f45f0 commit 1c30120
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ dependencies {
implementation("org.springframework.boot", "spring-boot-starter-web")
implementation("org.springframework.boot", "spring-boot-starter-undertow")
implementation("org.springframework.boot", "spring-boot-starter-data-jpa")
implementation("mysql", "mysql-connector-java")

implementation("org.bouncycastle", "bcprov-jdk15on", bouncyCastleVersion)
implementation("org.bouncycastle", "bcpkix-jdk15on", bouncyCastleVersion)
Expand Down
4 changes: 4 additions & 0 deletions config/application-mysql.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring.datasource.url=jdbc:mysql://localhost/pki
spring.datasource.username=user
spring.datasource.password=seacKoop
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
16 changes: 16 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.3'

services:
db:
image: mariadb:latest
container_name: mariadb
ports:
- "3306:3306"
volumes:
- ./data/mariadb:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: OtJagbee
MYSQL_DATABASE: pki
MYSQL_USER: user
MYSQL_PASSWORD: seacKoop

0 comments on commit 1c30120

Please sign in to comment.