mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-10-25 15:59:20 +08:00
🐳 Docker
This commit is contained in:
12
docker-compose.debug.yml
Normal file
12
docker-compose.debug.yml
Normal 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
10
docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
version: "3.4"
|
||||||
|
|
||||||
|
services:
|
||||||
|
uptimekuma:
|
||||||
|
image: uptimekuma
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
NODE_ENV: production
|
||||||
|
ports:
|
||||||
|
- 50013:50013
|
||||||
@@ -5,6 +5,6 @@ COPY . .
|
|||||||
RUN yarn
|
RUN yarn
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
#
|
#
|
||||||
EXPOSE 3001
|
EXPOSE 50013
|
||||||
VOLUME ["/app/data"]
|
VOLUME ["/app/data"]
|
||||||
CMD ["npm", "run", "start-server"]
|
CMD ["npm", "run", "start-server"]
|
||||||
Reference in New Issue
Block a user