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"]