feat: Docker Compose — app, PostgreSQL 17, опциональный Caddy

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 09:41:03 +03:00
parent 8dae5d37fc
commit a4541cf266
7 changed files with 200 additions and 16 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM node:20-alpine
WORKDIR /app
RUN apk add --no-cache tini curl
COPY package.json ./
RUN npm install --omit=dev && npm cache clean --force
COPY src ./src
COPY postgres ./postgres
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
USER node
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["node", "src/server.js"]