From 29e112c579261183f1c611f80598142da2b3b9f5 Mon Sep 17 00:00:00 2001 From: Ell Neal Date: Tue, 3 May 2016 16:51:18 +0100 Subject: [PATCH] Add a docker-compose file with a test service --- docker-compose.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..f77a67b65 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +version: "2" +services: + redis: + image: redis + container_name: heaven_redis + networks: + - heaven + test: + build: + context: . + image: heaven/test + command: ["rake"] + environment: + RAILS_ENV: test + REDIS_PROVIDER: REDIS_CONTAINER_URL + REDIS_CONTAINER_URL: redis://heaven_redis + volumes: + - ./:/usr/lib/heaven + depends_on: + - redis + networks: + - heaven +networks: + heaven: + driver: bridge \ No newline at end of file