fix
Some checks failed
deploy-analiticaNucleo / deploy (push) Failing after 10s

This commit is contained in:
2025-10-05 12:14:30 -06:00
parent 2b252d798b
commit 68f2285bc8
2 changed files with 14 additions and 14 deletions

View File

@@ -25,30 +25,30 @@ jobs:
run: | run: |
docker network inspect principal >/dev/null 2>&1 || docker network create principal docker network inspect principal >/dev/null 2>&1 || docker network create principal
- name: Stop existing analiticaNucleo stack - name: Stop existing analiticanucleo stack
run: docker compose -f docker-compose.yml --project-name analiticaNucleo down || true run: docker compose -f docker-compose.yml --project-name analiticanucleo down || true
- name: Pull latest images (if any) - name: Pull latest images (if any)
run: docker compose -f docker-compose.yml pull || true run: docker compose -f docker-compose.yml pull || true
- name: Build and start analiticaNucleo stack - name: Build and start analiticanucleo stack
run: docker compose -f docker-compose.yml --project-name analiticaNucleo up -d --build --remove-orphans run: docker compose -f docker-compose.yml --project-name analiticanucleo up -d --build --remove-orphans
- name: Wait for service to be ready - name: Wait for service to be ready
run: | run: |
echo "Waiting for Nuxt app to start..." echo "Waiting for Nuxt app to start..."
sleep 10 sleep 10
docker compose -f docker-compose.yml --project-name analiticaNucleo logs --tail=30 nuxt-app docker compose -f docker-compose.yml --project-name analiticanucleo logs --tail=30 nuxt-app
- name: Show service status - name: Show service status
run: docker compose -f docker-compose.yml --project-name analiticaNucleo ps run: docker compose -f docker-compose.yml --project-name analiticanucleo ps
- name: Show recent logs - name: Show recent logs
run: docker compose -f docker-compose.yml --project-name analiticaNucleo logs --tail=50 run: docker compose -f docker-compose.yml --project-name analiticanucleo logs --tail=50
- name: Test service health - name: Test service health
run: | run: |
echo "Checking container health..." echo "Checking container health..."
CID=$(docker compose -f docker-compose.yml --project-name analiticaNucleo ps -q nuxt-app) CID=$(docker compose -f docker-compose.yml --project-name analiticanucleo ps -q nuxt-app)
echo "Container: $CID" echo "Container: $CID"
docker inspect "$CID" --format '{{.State.Status}}' || true docker inspect "$CID" --format '{{.State.Status}}' || true

View File

@@ -5,7 +5,7 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: analiticaNucleo-nuxt-app container_name: analiticanucleo-nuxt-app
restart: unless-stopped restart: unless-stopped
environment: environment:
- NODE_ENV=production - NODE_ENV=production
@@ -17,11 +17,11 @@ services:
- principal - principal
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.analiticaNucleo.rule=Host(`analitica.nucleoriofrio.com`)" - "traefik.http.routers.analiticanucleo.rule=Host(`analitica.nucleoriofrio.com`)"
- "traefik.http.routers.analiticaNucleo.entrypoints=websecure" - "traefik.http.routers.analiticanucleo.entrypoints=websecure"
- "traefik.http.routers.analiticaNucleo.tls=true" - "traefik.http.routers.analiticanucleo.tls=true"
- "traefik.http.routers.analiticaNucleo.tls.certresolver=letsencrypt" - "traefik.http.routers.analiticanucleo.tls.certresolver=letsencrypt"
- "traefik.http.services.analiticaNucleo.loadbalancer.server.port=3000" - "traefik.http.services.analiticanucleo.loadbalancer.server.port=3000"
- "traefik.docker.network=principal" - "traefik.docker.network=principal"
networks: networks: