Skip to content

Commit

Permalink
add local db containers
Browse files Browse the repository at this point in the history
  • Loading branch information
entone committed Apr 7, 2016
1 parent 5a11a20 commit 6f5c18c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
40 changes: 37 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6f5c18c

Please sign in to comment.