Parametrize configurations¡
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user