Parametrize configurations¡

This commit is contained in:
2025-12-24 12:44:34 +01:00
parent a2f21e1286
commit a9baf6da95
8 changed files with 105 additions and 30 deletions

View File

@@ -2,16 +2,16 @@ services:
backend:
build:
context: ./backend
image: cafeteria-backend:${BACKEND_TAG}
image: cafeteria-backend:${BACKEND_TAG:-latest}
networks:
- cafeteria
ports:
- "8000:8000"
environment:
JENKINS_BASE_URL: ${JENKINS_BASE_URL}
JENKINS_JOB_NAME: ${JENKINS_JOB_NAME}
JENKINS_USER: ${JENKINS_USER}
JENKINS_TOKEN: ${JENKINS_TOKEN}
JENKINS_BASE_URL: ${JENKINS_BASE_URL:-http://jenkins:8080}
JENKINS_JOB_NAME: ${JENKINS_JOB_NAME:-TallerCiCd}
JENKINS_USER: ${JENKINS_USER:-}
JENKINS_TOKEN: ${JENKINS_TOKEN:-}
restart: unless-stopped
healthcheck:
test:
@@ -28,9 +28,9 @@ services:
frontend:
build:
context: ./frontend
image: cafeteria-frontend:${FRONTEND_TAG}
environment:
VITE_API_BASE: ${VITE_API_BASE}
args:
VITE_API_BASE: ${VITE_API_BASE:-/taller/api}
image: cafeteria-frontend:${FRONTEND_TAG:-latest}
networks:
- cafeteria
ports: