Skip to content

Instantly share code, notes, and snippets.

@johnnyeric
Forked from dalanmiller/Dockerfile.app
Created June 18, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnyeric/7b3535ecb35569df628978bda586ba3f to your computer and use it in GitHub Desktop.
Save johnnyeric/7b3535ecb35569df628978bda586ba3f to your computer and use it in GitHub Desktop.
RethinkDB docker-compose.yml example
version: '2'
services:
rethinkdb:
build: /rethinkdb
ports:
- "28015"
volumes:
- /data:/data
command: rethinkdb --bind all --data /data
app:
build: /app
volumes:
- /app/folder:/app
command: node start --production
depends_on: rethinkdb
ports:
- 8080:80
IMAGE node:argon
RUN mkdir -p /usr/app
COPY . /usr/app
WORKDIR /usr/app
RUN npm install
IMAGE rethinkdb
COPY ./data.json /usr/data.json
RUN rethinkdb import -f /usr/data.json --table data.table --format json && rm /usr/data.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment