🐳 Docker

This commit is contained in:
Philipp Dormann 2021-07-12 21:50:39 +02:00
parent 789094a2ee
commit 8cd90d1e96
No known key found for this signature in database
GPG Key ID: 3BB9ADD52DCA4314
3 changed files with 23 additions and 1 deletions

12
docker-compose.debug.yml Normal file
View File

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

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: "3.4"
services:
uptimekuma:
image: uptimekuma
build: .
environment:
NODE_ENV: production
ports:
- 50013:50013

View File

@ -5,6 +5,6 @@ COPY . .
RUN yarn
RUN yarn build
#
EXPOSE 3001
EXPOSE 50013
VOLUME ["/app/data"]
CMD ["npm", "run", "start-server"]