From 6f5c18c235f8348adbc9fe2c8b4972ac11d8df89 Mon Sep 17 00:00:00 2001 From: Christopher Cote Date: Thu, 7 Apr 2016 16:53:31 -0500 Subject: [PATCH] add local db containers --- Dockerfile | 2 -- docker-compose.yml | 40 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index caf3bb2..7c005c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,6 @@ RUN apt-get update && apt-get install -y git RUN mix local.rebar RUN mix local.hex --force -RUN git clone https://github.com/NationalAssociationOfRealtors/node_bucket.git - ADD . /app WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index 6f5685c..32d8eb0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,43 @@ +mongodata: + image: mongo:2.6 + command: "true" + volumes: + - /nar/mongo:/mongo/data + +mongodb: + image: mongo:2.6 + hostname: mongodb + command: "--dbpath=/mongo/data" + expose: + - "27017:27017" + volumes_from: + - mongodata + +influxdata: + image: tutum/influxdb + command: "true" + volumes: + - /nar/influx:/data + +influxdb: + image: tutum/influxdb + hostname: influxdb + log_driver: "syslog" + expose: + - "8086:8086" + - "8083:8083" + volumes_from: + - influxdata + environment: + INFLUXDB_VERSION: 0.12.0-1 + + nodebucket: build: . command: "mix run --no-halt" - external_links: - - lablog_mongodb_1:mongo - - lablog_influxdb_1:influx + links: + - mongodb:mongo + - influxdb:influx volumes: - .:/app ports: