Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
db4693c1
Verified
Commit
db4693c1
authored
2 years ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Add replication for metadata db in dbrepo2
parent
c5a47b03
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!163
Relase 1.3.0
,
!162
Resolve "Improve Semantic Service handling"
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env.unix.example
+2
-0
2 additions, 0 deletions
.env.unix.example
dbrepo-metadata-db/setup-schema.sql
+1
-2
1 addition, 2 deletions
dbrepo-metadata-db/setup-schema.sql
docker-compose.dbrepo2.yml
+27
-0
27 additions, 0 deletions
docker-compose.dbrepo2.yml
docker-compose.yml
+4
-4
4 additions, 4 deletions
docker-compose.yml
with
34 additions
and
6 deletions
.env.unix.example
+
2
−
0
View file @
db4693c1
...
...
@@ -8,6 +8,8 @@ ELASTIC_PASSWORD=elastic
METADATA_DB=fda
METADATA_USERNAME=root
METADATA_PASSWORD=dbrepo
METADATA_REPLICATION_USER=rep
METADATA_REPLICATION_PASSWORD=rep
BROKER_USERNAME=fda
BROKER_PASSWORD=fda
KEYCLOAK_ADMIN=fda
...
...
This diff is collapsed.
Click to expand it.
dbrepo-metadata-db/setup-schema.sql
+
1
−
2
View file @
db4693c1
...
...
@@ -489,8 +489,7 @@ VALUES ('MIT', 'https://opensource.org/licenses/MIT'),
(
'CC-BY-4.0'
,
'https://creativecommons.org/licenses/by/4.0/legalcode'
);
INSERT
INTO
`fda`
.
`mdb_images`
(
repository
,
tag
,
default_port
,
dialect
,
driver_class
,
jdbc_method
)
VALUES
(
'mariadb'
,
'10.5'
,
3306
,
'org.hibernate.dialect.MariaDBDialect'
,
'org.mariadb.jdbc.Driver'
,
'mariadb'
),
(
'bitnami/mariadb'
,
'10.5'
,
3306
,
'org.hibernate.dialect.MariaDBDialect'
,
'org.mariadb.jdbc.Driver'
,
'mariadb'
);
VALUES
(
'bitnami/mariadb'
,
'10.5'
,
3306
,
'org.hibernate.dialect.MariaDBDialect'
,
'org.mariadb.jdbc.Driver'
,
'mariadb'
);
INSERT
INTO
`fda`
.
`mdb_images_environment_item`
(
`key`
,
value
,
etype
,
iid
)
VALUES
(
'ROOT'
,
'root'
,
'PRIVILEGED_USERNAME'
,
1
),
...
...
This diff is collapsed.
Click to expand it.
docker-compose.dbrepo2.yml
+
27
−
0
View file @
db4693c1
...
...
@@ -46,6 +46,33 @@ services:
-
"
9100:9100"
env_file
:
-
.env
environment
:
MARIADB_REPLICATION_MODE
:
master
MARIADB_REPLICATION_USER
:
"
${METADATA_REPLICATION_USER}"
MARIADB_REPLICATION_PASSWORD
:
"
${METADATA_REPLICATION_PASSWORD}"
logging
:
driver
:
json-file
dbrepo-metadata-db-slave
:
restart
:
"
no"
hostname
:
metadata-db-slave
image
:
bitnami/mariadb:10.5
networks
:
core
:
env_file
:
-
.env
environment
:
MARIADB_REPLICATION_MODE
:
slave
MARIADB_REPLICATION_USER
:
"
${METADATA_REPLICATION_USER}"
MARIADB_REPLICATION_PASSWORD
:
"
${METADATA_REPLICATION_PASSWORD}"
MARIADB_MASTER_HOST
:
metadata-db
MARIADB_MASTER_PORT_NUMBER
:
3306
MARIADB_MASTER_ROOT_PASSWORD
:
"
${METADATA_PASSWORD}"
depends_on
:
-
dbrepo-metadata-db
deploy
:
mode
:
replicated
replicas
:
3
logging
:
driver
:
json-file
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
4
−
4
View file @
db4693c1
...
...
@@ -11,14 +11,14 @@ volumes:
authentication-service-data
:
networks
:
userdb
:
name
:
userdb
public
:
name
:
public
driver
:
bridge
ipam
:
config
:
-
subnet
:
172.30.0.0/16
public
:
name
:
public
userdb
:
name
:
userdb
driver
:
bridge
ipam
:
config
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment