From 8cd90d1e966e2e090da5fd83c032d223e1c7c160 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Mon, 12 Jul 2021 21:50:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.debug.yml | 12 ++++++++++++ docker-compose.yml | 10 ++++++++++ dockerfile => dockerfile.tmp | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docker-compose.debug.yml create mode 100644 docker-compose.yml rename dockerfile => dockerfile.tmp (91%) diff --git a/docker-compose.debug.yml b/docker-compose.debug.yml new file mode 100644 index 000000000..57763be9c --- /dev/null +++ b/docker-compose.debug.yml @@ -0,0 +1,12 @@ +version: "3.4" + +services: + uptimekuma: + image: uptimekuma + build: . + environment: + NODE_ENV: development + ports: + - 50013:50013 + - 9229:9229 + command: ["node", "--inspect=0.0.0.0:9229", "server/server.js"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..53eb02490 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.4" + +services: + uptimekuma: + image: uptimekuma + build: . + environment: + NODE_ENV: production + ports: + - 50013:50013 diff --git a/dockerfile b/dockerfile.tmp similarity index 91% rename from dockerfile rename to dockerfile.tmp index c51f3984b..b10ea99ab 100644 --- a/dockerfile +++ b/dockerfile.tmp @@ -5,6 +5,6 @@ COPY . . RUN yarn RUN yarn build # -EXPOSE 3001 +EXPOSE 50013 VOLUME ["/app/data"] CMD ["npm", "run", "start-server"]