Fix Dolibarr docker image name

This commit is contained in:
SysAdmin DCC 2025-12-01 10:21:26 +00:00
parent ebe8b8ae52
commit ffc39aae05
2 changed files with 59 additions and 1 deletions

57
fix_dolibarr.sh Normal file
View File

@ -0,0 +1,57 @@
#!/bin/bash
cd /root/alicante-infra || cd /sc/alicante-infra
echo "🔧 Corrigiendo imagen de Dolibarr..."
# Sobrescribimos el template de Business Apps con la imagen correcta (upshift/dolibarr)
cat > roles/core/templates/apps-business-compose.j2 <<EOF
services:
dolibarr:
image: upshift/dolibarr:latest
environment:
DOLI_DB_HOST: postgres-core
DOLI_DB_PASSWORD: {{ global_db_root_pass }}
DOLI_ADMIN_LOGIN: admin
DOLI_DB_TYPE: pgsql
networks:
- alicante_net
ports:
- "8080:80"
teable:
image: teableio/teable:latest
environment:
PRISMA_DATABASE_URL: "postgresql://postgres:{{ global_db_root_pass }}@postgres-core:5432/teable"
REDIS_URL: "redis://:{{ global_redis_pass }}@redis-core:6379/0"
networks:
- alicante_net
ports:
- "3000:3000"
activepieces:
image: activepieces/activepieces:latest
environment:
AP_POSTGRES_HOST: postgres-core
AP_POSTGRES_PASSWORD: {{ global_db_root_pass }}
AP_REDIS_HOST: redis-core
AP_REDIS_PASSWORD: {{ global_redis_pass }}
networks:
- alicante_net
ports:
- "8081:80"
networks:
alicante_net:
external: true
EOF
echo "✅ Template corregido."
# Subir a Git
git add .
git commit -m "Fix Dolibarr docker image name"
git push
echo "🚀 Listo. Dale al RUN en Semaphore."

View File

@ -1,10 +1,11 @@
services:
dolibarr:
image: tuxg/dolibarr:latest
image: upshift/dolibarr:latest
environment:
DOLI_DB_HOST: postgres-core
DOLI_DB_PASSWORD: {{ global_db_root_pass }}
DOLI_ADMIN_LOGIN: admin
DOLI_DB_TYPE: pgsql
networks:
- alicante_net
ports: