summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2018-02-15 23:03:01 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2018-02-15 23:03:01 +0100
commitb6875e16b1683f86226449d577a8c98b04d70915 (patch)
treebdbfb8325f382139aab9eaf6ce88a7939b0d25d0 /docker-compose.yml
parent2212162c1311ce9b39cb2142f52bffddac3b9559 (diff)
chore: Automatically import database schema in Docker image
This change will make the database image automatically import the schema and test data.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index d9a73ad2..a89b7260 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -29,7 +29,9 @@ services:
- PERSISTENCE_USER=opendc
- PERSISTENCE_PASSWORD=opendcpassword
mariadb:
- image: mariadb:10.1
+ build:
+ context: ./database
+ image: database
restart: on-failure
ports:
- "3306:3306" # comment this line out in production