-
-
Save johnnyeric/7b3535ecb35569df628978bda586ba3f to your computer and use it in GitHub Desktop.
RethinkDB docker-compose.yml example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMAGE node:argon | |
RUN mkdir -p /usr/app | |
COPY . /usr/app | |
WORKDIR /usr/app | |
RUN npm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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