rename MongoDB instance
This commit is contained in:
parent
c9f608be59
commit
5db3540d52
3 changed files with 4 additions and 4 deletions
|
@ -21,4 +21,4 @@ COPY . /opt/eventman/
|
||||||
|
|
||||||
WORKDIR /opt/eventman/
|
WORKDIR /opt/eventman/
|
||||||
ENTRYPOINT ["./eventman_server.py"]
|
ENTRYPOINT ["./eventman_server.py"]
|
||||||
CMD ["--debug", "--mongo_url=mongodb://eventman-mongo"]
|
CMD ["--debug", "--mongo_url=mongodb://mongo"]
|
||||||
|
|
|
@ -5,6 +5,6 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "5242:5242"
|
- "5242:5242"
|
||||||
depends_on:
|
depends_on:
|
||||||
- eventman-mongo
|
- mongo
|
||||||
eventman-mongo:
|
mongo:
|
||||||
image: "mongo:latest"
|
image: "mongo:latest"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mongodump --host eventman-mongo --out /tmp/ --db eventman
|
mongodump --host mongo --out /tmp/ --db eventman
|
||||||
cd /tmp
|
cd /tmp
|
||||||
tar cfz /data/eventman-dump-`date +'%Y-%m-%dT%H.%M.%S'`.tgz eventman
|
tar cfz /data/eventman-dump-`date +'%Y-%m-%dT%H.%M.%S'`.tgz eventman
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue