alicante-infra/fix_carbone.sh

62 lines
1.2 KiB
Bash

#!/bin/bash
cd /root/alicante-infra || cd /sc/alicante-infra
echo "🔧 Corrigiendo imagen de Carbone..."
# Sobrescribimos el template de Docs con la imagen correcta (carbone/carbone)
cat > roles/core/templates/apps-docs-compose.j2 <<EOF
services:
metabase:
image: metabase/metabase:latest
environment:
MB_DB_TYPE: postgres
MB_DB_HOST: postgres-core
MB_DB_USER: postgres
MB_DB_PASS: {{ global_db_root_pass }}
MB_DB_DBNAME: metabase
networks:
- alicante_net
ports:
- "3001:3000"
bookstack:
image: lscr.io/linuxserver/bookstack:latest
environment:
DB_HOST: mariadb-core
DB_USER: root
DB_PASS: {{ global_db_root_pass }}
networks:
- alicante_net
ports:
- "6875:80"
gotenberg:
image: gotenberg/gotenberg:8
networks:
- alicante_net
carbone:
image: carbone/carbone
environment:
GOTENBERG_URL: "http://gotenberg:3000"
networks:
- alicante_net
ports:
- "4200:4200"
networks:
alicante_net:
external: true
EOF
echo "✅ Template corregido."
# Subir a Git
git add .
git commit -m "Fix Carbone docker image name"
git push
echo "🚀 Listo. Dale al RUN en Semaphore."