feat: Containerize services with Docker Compose (PostgreSQL, Strapi CMS, Express Backend, Nginx Frontend) on custom ports >9000

This commit is contained in:
Vishva
2026-08-03 19:58:10 +05:30
parent 48f8ab9716
commit 6244fd4072
247 changed files with 56672 additions and 169 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM node:22-alpine
WORKDIR /app
# Copy root package files and install dependencies
COPY package*.json ./
RUN npm install --omit=dev
# Copy server code and assets
COPY server/ ./server/
COPY scripts/ ./scripts/
COPY public/ ./public/
# Create uploads and data directories
RUN mkdir -p server/uploads server/data
ENV PORT=3005
ENV NODE_ENV=production
EXPOSE 3005
CMD ["node", "server/index.js"]