Modernizar workflow y docker-compose con variables
Some checks failed
build-and-deploy / build-and-deploy (push) Failing after 9s
Some checks failed
build-and-deploy / build-and-deploy (push) Failing after 9s
- Convertir imágenes hardcodeadas a variables (REG, REPO_OWNER) - Agregar variables APP_NAME y APP_DOMAIN al workflow - Agregar flag --wait al despliegue para esperar contenedores listos - Pasar variables de entorno (RADIUS_*) explícitamente en cada paso - Agregar paso informativo sobre el deployment - Simplificar comandos docker compose (sin -f innecesario) - Corregir indentación del docker-compose.yml - Eliminar paso redundante "Show service status" Estos cambios hacen que el workflow sea más robusto y consistente con el patrón usado en analiticaNucleo.
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
version: "3.9"
|
||||
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
radiusnucleo-node:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: node-api/Dockerfile
|
||||
image: gitea.nucleoriofrio.com/nucleo000/radiusnucleo:latest
|
||||
container_name: radiusnucleo-node-1
|
||||
environment:
|
||||
services:
|
||||
radiusnucleo-node:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: node-api/Dockerfile
|
||||
image: ${REG}/${REPO_OWNER}/radiusnucleo:latest
|
||||
container_name: radiusnucleo-node-1
|
||||
environment:
|
||||
- VLAN_ID=2
|
||||
- MAX_UP=10000000
|
||||
- MAX_DOWN=10000000
|
||||
@@ -20,12 +19,12 @@
|
||||
- PGDATABASE=radius
|
||||
- PGUSER=radius
|
||||
- PGPASSWORD=radius
|
||||
networks:
|
||||
networks:
|
||||
principal:
|
||||
radiusnucleo_radius_net:
|
||||
aliases:
|
||||
- node
|
||||
labels:
|
||||
labels:
|
||||
# Habilitar Traefik
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=principal"
|
||||
@@ -59,7 +58,7 @@
|
||||
|
||||
freeradius:
|
||||
build: ./freeradius
|
||||
image: gitea.nucleoriofrio.com/nucleo000/radiusnucleo-freeradius:latest
|
||||
image: ${REG}/${REPO_OWNER}/radiusnucleo-freeradius:latest
|
||||
depends_on:
|
||||
- radiusnucleo-node
|
||||
- postgres
|
||||
@@ -88,11 +87,11 @@
|
||||
- radiusnucleo_radius_net
|
||||
- principal
|
||||
|
||||
networks:
|
||||
principal:
|
||||
external: true
|
||||
radiusnucleo_radius_net:
|
||||
external: true
|
||||
networks:
|
||||
principal:
|
||||
external: true
|
||||
radiusnucleo_radius_net:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user