Files
plantillas-proyectos/docker-compose.ci.yml
AlexeerCT fe51c508d1 Refactor Jenkinsfile to streamline CI image build and testing process
- Updated the Jenkinsfile to build backend and frontend images using Docker Compose, enhancing the efficiency of the CI pipeline.
- Removed the obsolete e2e_alembic_upgrade.py script, as its functionality is no longer required.
- Improved comments for clarity regarding the build and testing stages, ensuring better understanding of the CI process.
2026-04-24 16:03:47 -05:00

33 lines
1.1 KiB
YAML

# Override para CI/Jenkins (E2E + pipeline).
#
# Problema que resuelve: en Jenkins los bind mounts `./backend:/app` y
# `./frontend:/app` del compose base NO funcionan cuando el agente corre en un
# contenedor y el docker daemon del host no ve `$WORKSPACE`. El daemon monta
# un directorio vacío sobre `/app` y la app arranca sin código.
#
# Estrategia: con `!override` se reemplaza por completo la lista de volumes de
# cada servicio, dejando solo los volúmenes nombrados (cache, uploads,
# node_modules). El código se usa desde la imagen construida por
# `docker compose build`, que sí se transfiere por el daemon API.
#
# Requiere Docker Compose v2.24+ (tag `!override`).
services:
backend:
volumes: !override
- backend_cache:/app/__pycache__
- backend_uploads:/app/uploads
frontend:
volumes: !override
- frontend_node_modules:/app/node_modules
celery_worker:
volumes: !override
- backend_cache:/app/__pycache__
- backend_uploads:/app/uploads
celery_beat:
volumes: !override
- backend_cache:/app/__pycache__
- backend_uploads:/app/uploads