feat: restaura o projeto original do clube67.com (Next.js + Express API + MySQL + Redis) livre de gambiarras e dockerizado

This commit is contained in:
VPS 4 Builder
2026-05-18 20:57:05 +02:00
parent cb3a71c082
commit b4b0ad0a53
244 changed files with 28512 additions and 16680 deletions
+58 -24
View File
@@ -1,9 +1,64 @@
services:
clube67-db:
image: mysql:8.0
container_name: clube67-db-prod
restart: always
environment:
MYSQL_DATABASE: sis_cb67
MYSQL_USER: sis_cb67
MYSQL_PASSWORD: FsBtLbEStZ3AfBHC
MYSQL_ROOT_PASSWORD: root_cb67_secret_pass_2026
volumes:
- clube67-db-data:/var/lib/mysql
networks:
- soc
- web
clube67-backend:
image: node:20-alpine
container_name: clube67-backend-prod
restart: always
working_dir: /app/backend
env_file:
- ".env"
volumes:
- ".:/app"
- "./uploads:/www/wwwroot/clube67.com/uploads"
- "./logs:/www/wwwroot/clube67.com/logs"
command: sh -c "npm install --include=dev && npm run build && npm run migrate && npm run seed && npm run start"
depends_on:
- clube67-db
security_opt:
- no-new-privileges:true
networks:
- soc
- web
clube67-frontend:
image: node:20-alpine
container_name: clube67-frontend-prod
restart: always
working_dir: /app/frontend
env_file:
- ".env"
volumes:
- ".:/app"
command: sh -c "npm install --include=dev && npm run build && npm run start"
depends_on:
- clube67-backend
networks:
- soc
- web
nginx:
image: nginx:alpine
container_name: clube67-nginx-prod
restart: always
ports:
- "8085:80"
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro"
- "./uploads:/www/wwwroot/clube67.com/uploads:ro"
labels:
- "traefik.enable=true"
# Roteador de Produção do Clube67 (Apenas clube67.com e www.clube67.com)
@@ -16,35 +71,14 @@ services:
- soc
- web
depends_on:
- clube67-frontend
- clube67-backend
clube67-backend:
image: node:20
container_name: clube67-backend-prod
restart: always
working_dir: /app
env_file:
- "./backend/.env"
environment:
- PORT=3001
- NODE_ENV=production
volumes:
# Montar diretórios e arquivos do Clube67 reais
- "./backend/uploads:/app/uploads"
- "./backend/dist:/app/dist"
- "./backend/package.json:/app/package.json"
- "./backend/node_modules:/app/node_modules"
- "./frontend:/frontend"
command: node dist/backend/src/index.js
security_opt:
- no-new-privileges:true
networks:
- soc
- web
volumes:
clube67-db-data:
networks:
soc:
external: true
web:
external: true