Skip to content

Commit

Permalink
Add test db to docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Feb 10, 2017
1 parent c45cdfa commit 88a7288
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ services:
image: "mysql:5.7"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=alexandria
ports:
- "3306:3306"
volumes:
- "./docker-setup/init.sql:/docker-entrypoint-initdb.d/init.sql"
web:
build: .
command: python run.py
Expand Down
2 changes: 2 additions & 0 deletions docker-setup/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE DATABASE IF NOT EXISTS alexandria DEFAULT CHARACTER SET = utf-8;
CREATE DATABASE IF NOT EXISTS alexandria_test DEFAULT CHARACTER SET = utf-8;

0 comments on commit 88a7288

Please sign in to comment.