Update docker-compose.yml
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good

This commit is contained in:
minguezsanzjuanjose
2026-04-12 04:49:56 +02:00
parent 02feaf445d
commit 02bc67c5fd

View File

@@ -5,21 +5,24 @@ services:
dockerfile: deployments/Dockerfile dockerfile: deployments/Dockerfile
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: always restart: always
working_dir: /app # <--- Vital para que encuentre 'core' working_dir: /app
environment: environment:
- DEBUG=${DEBUG_MODE} - DEBUG=${DEBUG_MODE}
- PYTHONPATH=/app # <--- Asegura que Python vea las carpetas - PYTHONPATH=/app
- DB_NAME=gitea - DB_NAME=gitea
- DB_USER=gitea - DB_USER=gitea
- DB_PASSWORD=gitea - DB_PASSWORD=gitea
- DB_HOST=gitea-db-1 # CAMBIO CLAVE: Usamos el nombre del servicio, no el del contenedor con el "-1"
- DB_HOST=gitea-db
- DB_PORT=5432 - DB_PORT=5432
networks: networks:
- gitea_default - gitea_network
ports: ports:
- "${PORT}:8000" - "${PORT}:8000"
networks: networks:
gitea_default: gitea_network:
external: true external: true
name: frontend # IMPORTANTE: Aquí debe ir el nombre que te salió al hacer 'docker network ls'
# Si tu red se llama 'gitea_default', pon ese nombre aquí.
name: gitea_default