55 lines
1.2 KiB
Bash
55 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
cd /root/alicante-infra || cd /sc/alicante-infra
|
|
|
|
echo "🔧 Quitando Carbone del stack Docs..."
|
|
|
|
# Sobrescribimos el template Docs SIN Carbone, solo con Metabase, Bookstack y Gotenberg
|
|
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
|
|
# Gotenberg es una API, no suele necesitar puerto expuesto si se usa internamente,
|
|
# pero lo dejamos accesible por si acaso en el 3000 interno (o mapeado si quieres)
|
|
|
|
networks:
|
|
alicante_net:
|
|
external: true
|
|
EOF
|
|
|
|
echo "✅ Template corregido (Carbone eliminado)."
|
|
|
|
# Subir a Git
|
|
git add .
|
|
git commit -m "Remove Carbone service temporarily"
|
|
git push
|
|
|
|
echo "🚀 Listo. Dale al RUN en Semaphore."
|
|
|