chore: update docker configuration

This commit is contained in:
s.esmaeili
2026-09-10 02:26:23 +03:30
parent 077da7eacd
commit d6f9d63e14
3 changed files with 18 additions and 6 deletions
+4
View File
@@ -0,0 +1,4 @@
node_modules
dist
.git
.env
+12
View File
@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
+2 -6
View File
@@ -12,7 +12,7 @@ services:
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d lucky_wheel"]
test: [ "CMD-SHELL", "pg_isready -U postgres -d lucky_wheel" ]
interval: 5s
timeout: 5s
retries: 5
@@ -26,11 +26,7 @@ services:
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 5
volumes:
pg_data:
redis_data: