From e9257a42a7bccbe54a278d81e3fb87ef9e47495d Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 26 Nov 2017 19:52:08 +0100 Subject: [PATCH] add docker-compose file --- Dockerfile | 2 +- docker-compose.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index b6b155e..6d981f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ COPY . /opt/eventman/ WORKDIR /opt/eventman/ ENTRYPOINT ["./eventman_server.py"] -CMD ["--debug"] +CMD ["--debug", "--mongo_url=mongodb://eventman-mongo"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..125e9a9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' +services: + eventman: + build: . + ports: + - "5242:5242" + eventman-mongo: + image: "mongo:latest"