From 5db3540d52861ea33a9a18a011b1e2d008b55182 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 26 Nov 2017 22:39:45 +0100 Subject: [PATCH] rename MongoDB instance --- Dockerfile | 2 +- docker-compose.yml | 4 ++-- docker-tools/mongodump/run.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d981f8..330a064 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index 8f4ab2d..404b500 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,6 @@ services: ports: - "5242:5242" depends_on: - - eventman-mongo - eventman-mongo: + - mongo + mongo: image: "mongo:latest" diff --git a/docker-tools/mongodump/run.sh b/docker-tools/mongodump/run.sh index cd2ceb6..de039da 100755 --- a/docker-tools/mongodump/run.sh +++ b/docker-tools/mongodump/run.sh @@ -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