rename MongoDB instance

This commit is contained in:
Davide Alberani 2017-11-26 22:39:45 +01:00
parent c9f608be59
commit 5db3540d52
3 changed files with 4 additions and 4 deletions

View file

@ -21,4 +21,4 @@ COPY . /opt/eventman/
WORKDIR /opt/eventman/
ENTRYPOINT ["./eventman_server.py"]
CMD ["--debug", "--mongo_url=mongodb://eventman-mongo"]
CMD ["--debug", "--mongo_url=mongodb://mongo"]

View file

@ -5,6 +5,6 @@ services:
ports:
- "5242:5242"
depends_on:
- eventman-mongo
eventman-mongo:
- mongo
mongo:
image: "mongo:latest"

View file

@ -1,6 +1,6 @@
#!/bin/sh
mongodump --host eventman-mongo --out /tmp/ --db eventman
mongodump --host mongo --out /tmp/ --db eventman
cd /tmp
tar cfz /data/eventman-dump-`date +'%Y-%m-%dT%H.%M.%S'`.tgz eventman