Added Database stuff

This commit is contained in:
Niklas Birk
2020-03-10 15:55:49 +01:00
parent 70c738c97e
commit 01e1c17ee1
15 changed files with 14240 additions and 0 deletions

View File

@ -0,0 +1,32 @@
version: '3.1'
services:
# targetdb
postgres:
image: thesis/postgresql:1.0
container_name: postgres_db
restart: always
ports:
- 25001:5432
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: targetdb
volumes:
- ../sql/postgresql:/docker-entrypoint-initdb.d
# sourcedb2
mysql:
image: thesis/mysql:1.0
container_name: mysql_db
restart: always
ports:
- 25002:3306
# sourcedb1
maria:
image: thesis/mariadb:1.0
container_name: maria_db
restart: always
ports:
- 25003:3306

View File

@ -0,0 +1,43 @@
version: '3.1'
services:
postgres:
image: postgres
container_name: postgres_db
restart: always
ports:
- 25001:5432
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: targetdb
volumes:
- ../../sql/postgresql:/docker-entrypoint-initdb.d
mysql:
image: mysqlfirst
container_name: mysql_db
restart: always
ports:
- 25002:3306
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: sourcedb2
volumes:
- ../../sql/mysql:/docker-entrypoint-initdb.d
maria:
image: mariadbfirst
container_name: maria_db
restart: always
ports:
- 25003:3306
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: sourcedb1
volumes:
- ../../sql/maria:/docker-entrypoint-initdb.d