summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml15
-rw-r--r--mariadb/Dockerfile9
-rw-r--r--mariadb/my.cnf6
3 files changed, 30 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 8b7a519..75d6a17 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -277,6 +277,19 @@ services:
- vaindock_postgres_raw
- vaindock_postgres_web
+### pgAdmin Container #######################################
+ mdbweb:
+ container_name: vaindock_mdb_web
+ build: ./mariadb
+ volumes:
+ - vaindock_mdb_web:/var/lib/mysql
+ ports:
+ - 3306:3306
+ environment:
+ - MYSQL_DATABASE=vainweb
+ - MYSQL_USER=vainweb
+ - MYSQL_PASSWORD=vainweb
+ - MYSQL_ROOT_PASSWORD=vainweb
### Volumes Setup ###########################################
@@ -285,6 +298,8 @@ volumes:
driver: "local"
vaindock_pg_web:
driver: "local"
+ vaindock_mdb_web:
+ driver: "local"
sessions: ## nothing is connected to this (- ./data/sessions:/sessions)
driver: "local"
diff --git a/mariadb/Dockerfile b/mariadb/Dockerfile
new file mode 100644
index 0000000..cece944
--- /dev/null
+++ b/mariadb/Dockerfile
@@ -0,0 +1,9 @@
+FROM mariadb:latest
+
+MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
+
+ADD my.cnf /etc/mysql/conf.d/my.cnf
+
+CMD ["mysqld"]
+
+EXPOSE 3306 \ No newline at end of file
diff --git a/mariadb/my.cnf b/mariadb/my.cnf
new file mode 100644
index 0000000..9a54930
--- /dev/null
+++ b/mariadb/my.cnf
@@ -0,0 +1,6 @@
+# MariaDB database server configuration file.
+#
+# You can use this file to overwrite the default configuration
+#
+# For explanations see
+# http://dev.mysql.com/doc/mysql/en/server-system-variables.html \ No newline at end of file