diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a193eaa
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,5 @@
+FROM jboss/wildfly
+ADD docker/org /opt/wildfly/modules/org/
+ADD deployments/ROOT.war /opt/wildfly/standalone/deployments/
+ADD docker/add-datasource.sh /opt/wildfly/bin/
+RUN /opt/wildfly/bin/add-datasource.sh
\ No newline at end of file
diff --git a/docker/add-datasource.sh b/docker/add-datasource.sh
new file mode 100644
index 0000000..ff103dc
--- /dev/null
+++ b/docker/add-datasource.sh
@@ -0,0 +1,40 @@
+#!/usr/bin/augtool -LAsf
+
+#
+#
+#
+# jdbc:mariadb://${env.MARIADB_}:3306/testdb?useUnicode=yes&characterEncoding=UTF-8
+# mariadb
+#
+# root
+# mysqlPassword
+#
+#
+#
+#
+# org.mariadb.jdbc.MySQLDataSource
+#
+#
+#
+#
+
+set /augeas/load/Xml/lens Xml.lns
+set /augeas/load/Xml/incl[2] /opt/wildfly/standalone/configuration/standalone.xml
+load
+defvar subsystem "/files/opt/wildfly/standalone/configuration/standalone.xml/server/profile/subsystem[#attribute/xmlns='urn:jboss:domain:datasources:2.0']"
+set $subsystem/datasources/datasource[last()+1]/#attribute/jndi-name "java:jboss/datasources/MySQLDS"
+defvar ds $subsystem/datasources/datasource[last()]
+set $ds/#attribute/pool-name "MySQLDS"
+set $ds/#attribute/enabled "true"
+set $ds/#attribute/use-java-context "true"
+set $ds/connection-url/#text "jdbc:mariadb://${env.MARIADB_PORT_3306_TCP_ADDR}:3306/testdb?useUnicode=yes&characterEncoding=UTF-8"
+set $ds/driver/#text "mariadb"
+set $ds/security/user-name/#text "root"
+set $ds/security/password/#text "mysqlPassword"
+set $subsystem/datasources/drivers/driver[last()+1]/#attribute/name "mariadb"
+defvar dr $subsystem/datasources/drivers/driver[last()]
+set $dr/#attribute/module "org.mariadb.jdbc"
+set $dr/xa-datasource-class/#text "org.mariadb.jdbc.MySQLDataSource"
+save
+
+print /augeas//error
diff --git a/docker/org/mariadb/jdbc/main/mariadb-java-client-1.1.7.jar b/docker/org/mariadb/jdbc/main/mariadb-java-client-1.1.7.jar
new file mode 100644
index 0000000..8c451aa
Binary files /dev/null and b/docker/org/mariadb/jdbc/main/mariadb-java-client-1.1.7.jar differ
diff --git a/docker/org/mariadb/jdbc/main/module.xml b/docker/org/mariadb/jdbc/main/module.xml
new file mode 100644
index 0000000..7aa70ce
--- /dev/null
+++ b/docker/org/mariadb/jdbc/main/module.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+