Skip to content

Commit

Permalink
Backup Rethikdb (laradock#1937)
Browse files Browse the repository at this point in the history
- You requiere run python-pip for backing up your data
  • Loading branch information
miguelortizdev authored and bestlong committed Feb 9, 2019
1 parent e0dc683 commit 99f7e65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DOCUMENTATION/content/documentation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,9 @@ docker-compose up -d rethinkdb
- set the `DB_DATABASE` to `database`.


#### Additional Notes


- You may do backing up of your data using the next reference: [backing up your data](https://www.rethinkdb.com/docs/backup/).


<br>
Expand Down
7 changes: 7 additions & 0 deletions rethinkdb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ LABEL maintainer="Cristian Mello <[email protected]>"

VOLUME /data/rethinkdb_data

#Necessary for the backup rethinkdb
RUN apt-get -y update \
&& apt-get -y upgrade \
&& apt-get -y install python-pip \
&& pip install rethinkdb \
&& rm -rf /var/lib/apt/lists/*

RUN cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf

CMD ["rethinkdb", "--bind", "all"]
Expand Down

0 comments on commit 99f7e65

Please sign in to comment.