Configurar despliegue con Docker, Traefik y Authentik
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 27s

- Agregar Dockerfile para build multi-stage con Node 20
- Configurar docker-compose.yml con Traefik y Authentik exteriorlvl2
- Crear workflow de Gitea Actions para CI/CD automático
- Configurar routers público (assets) y protegido (app + APIs)
- Documentar arquitectura y proceso de despliegue
This commit is contained in:
2025-10-27 12:00:05 -06:00
commit 4c729866aa
13 changed files with 3091 additions and 0 deletions

32
Dockerfile Normal file
View File

@@ -0,0 +1,32 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --omit=dev
# Production stage
FROM node:20-alpine AS production
WORKDIR /app
# Copy dependencies from builder
COPY --from=builder /app/node_modules ./node_modules
# Copy application files
COPY server.js ./
COPY package.json ./
COPY public ./public
# Create photos directory for volume mounting
RUN mkdir -p /app/photos
# Expose port
EXPOSE 3001
# Start the application
CMD ["node", "server.js"]