From 91eae960c6aa0e283f21f1ff4513ec70cdcd9d05 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 28 Feb 2018 10:31:10 +0100 Subject: [PATCH] Added docker-compose.travis.yml --- .travis.yml | 5 ++--- docker-compose.travis.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 docker-compose.travis.yml diff --git a/.travis.yml b/.travis.yml index 3c5efb0db..59e5e7254 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,11 +4,10 @@ services: - docker before_script: - - docker-compose build - - docker-compose up -d + - docker-compose -f docker-compose.travis.yml up --build -d script: - docker-compose exec photoprism /usr/local/go/bin/go test after_script: - - docker-compose down \ No newline at end of file + - docker-compose -f docker-compose.travis.yml down \ No newline at end of file diff --git a/docker-compose.travis.yml b/docker-compose.travis.yml new file mode 100644 index 000000000..f4af7b2eb --- /dev/null +++ b/docker-compose.travis.yml @@ -0,0 +1,19 @@ +version: '3.3' + +services: + photoprism: + build: . + database: + image: mysql:latest + command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 + volumes: + - database-data:/var/lib/mysql + environment: + MYSQL_ROOT_PASSWORD: photoprism + MYSQL_USER: photoprism + MYSQL_PASSWORD: photoprism + MYSQL_DATABASE: photoprism + +volumes: + database-data: + driver: local \ No newline at end of file