From f8df97d51d56e27ae880a2b5bd71149559e91b4a Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Thu, 15 Feb 2018 23:03:01 +0100 Subject: chore: Automatically import database schema in Docker image This change will make the database image automatically import the schema and test data. --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml index ac4bc27f..2407e9ff 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 -- cgit v1.2.3