New container sleep :)
Some checks failed
pipeline / build-and-push-images (push) Successful in 45s
pipeline / deploy (push) Failing after 6s

This commit is contained in:
2025-01-03 19:43:13 +01:00
parent 6e1fb78f8f
commit 4688292dd6
3 changed files with 6 additions and 5 deletions

View File

@@ -29,7 +29,8 @@ services:
deploy:
restart_policy:
condition: any
delay: 1h
delay: 0
window: 10s
environment:
MONGO_USER: root
MONGO_PASS: password
@@ -41,8 +42,8 @@ services:
deploy:
restart_policy:
condition: any
delay: 20h
window: 1m
delay: 0
window: 20s
environment:
MONGO_USER: root
MONGO_PASS: password

View File

@@ -5,4 +5,4 @@ USER node
COPY --chown=node:node package*.json ./
RUN npm install
COPY --chown=node:node . .
CMD [ "node", "--import=tsx", "index.js" ]
CMD /bin/bash -c "node --import=tsx index.js && sleep 20h"

View File

@@ -5,4 +5,4 @@ USER node
COPY --chown=node:node package*.json ./
RUN npm install
COPY --chown=node:node . .
CMD [ "node", "--import=tsx", "index.ts" ]
CMD /bin/bash -c "node --import=tsc index.ts && sleep 1h"