mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2024-12-25 12:45:23 +00:00
Use serve instead
This commit is contained in:
parent
7828e73113
commit
cb3660fdd1
12
Dockerfile
12
Dockerfile
@ -1,13 +1,11 @@
|
|||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 5000
|
||||||
|
|
||||||
COPY ./docs /app
|
RUN npm i -g serve
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk add --no-cache curl
|
CMD ["npm", "run", "start"]
|
||||||
|
|
||||||
RUN npm install http-server
|
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
|
||||||
|
@ -5,7 +5,7 @@ services:
|
|||||||
app:
|
app:
|
||||||
image: "decentral1se/biobulkbende.org:latest"
|
image: "decentral1se/biobulkbende.org:latest"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8081"]
|
test: ["CMD", "curl", "-f", "http://localhost:5000"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 10
|
retries: 10
|
||||||
@ -18,7 +18,7 @@ services:
|
|||||||
order: start-first
|
order: start-first
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.services.biobulkbende-org.loadbalancer.server.port=8081"
|
- "traefik.http.services.biobulkbende-org.loadbalancer.server.port=5000"
|
||||||
- "traefik.http.routers.biobulkbende-org.rule=Host(`biobulkbende.org`)"
|
- "traefik.http.routers.biobulkbende-org.rule=Host(`biobulkbende.org`)"
|
||||||
- "traefik.http.routers.biobulkbende-org.entrypoints=web-secure"
|
- "traefik.http.routers.biobulkbende-org.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.biobulkbende-org.tls.certresolver=production"
|
- "traefik.http.routers.biobulkbende-org.tls.certresolver=production"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"start": "http-server -c-1 docs/ -p 8081"
|
"start": "serve docs"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
Loading…
Reference in New Issue
Block a user