File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 21
21
- name : ruuvipuserrin-archive
22
22
image : ghcr.io/unkhz/ruuvipuserrin-archive:latest
23
23
ports :
24
- - containerPort : 80
24
+ - containerPort : 8080
25
25
environment :
26
26
- name : PG_HOST
27
27
value : ' nope'
@@ -45,11 +45,11 @@ spec:
45
45
readinessProbe :
46
46
httpGet :
47
47
path : /health
48
- port : 80
48
+ port : 8080
49
49
livenessProbe :
50
50
httpGet :
51
51
path : /health
52
- port : 80
52
+ port : 8080
53
53
initialDelaySeconds : 30
54
54
periodSeconds : 300
55
55
timeoutSeconds : 15
69
69
ports :
70
70
- protocol : TCP
71
71
port : 80
72
- targetPort : 80
72
+ targetPort : 8080
73
73
type : ClusterIP
74
74
---
75
75
apiVersion : networking.k8s.io/v1
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ FROM ghcr.io/unkhz/ruuvipuserrin-base-node
2
2
3
3
WORKDIR /app
4
4
5
- EXPOSE 4000
5
+ EXPOSE 8080
6
6
7
7
CMD node packages/archive
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ app.use(
16
16
createContext,
17
17
} ) ,
18
18
)
19
+ app . use ( '/health' , ( req , res ) => {
20
+ res . set ( {
21
+ 'Cache-Control' : 'no-cache' ,
22
+ 'Content-Type' : 'text/plain' ,
23
+ 'X-Health-Check' : 'OK' ,
24
+ } )
25
+ res . send ( 'OK' )
26
+ res . end ( )
27
+ } )
19
28
20
29
const port = env . PORT ?? env . ARCHIVE_API_PORT ?? 8080
21
30
app . listen ( port , ( ) => {
You can’t perform that action at this time.
0 commit comments