diff --git a/Dockerfile b/Dockerfile index bdfddcb..7c6fc29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN npm run build EXPOSE 3000 -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1 +HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \ + CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/health || exit 1 CMD ["npm", "start"] diff --git a/data/sessions.db b/data/sessions.db index f134a84..abf8557 100644 Binary files a/data/sessions.db and b/data/sessions.db differ diff --git a/docker-compose.yml b/docker-compose.yml index 778e14a..9b03945 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,8 @@ services: - PORT=3000 - NODE_ENV=production healthcheck: - test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/health"] interval: 30s timeout: 3s retries: 3 - start_period: 5s + start_period: 10s