Update docker-compose.yml
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
This commit is contained in:
@@ -5,21 +5,24 @@ services:
|
||||
dockerfile: deployments/Dockerfile
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
working_dir: /app # <--- Vital para que encuentre 'core'
|
||||
working_dir: /app
|
||||
environment:
|
||||
- DEBUG=${DEBUG_MODE}
|
||||
- PYTHONPATH=/app # <--- Asegura que Python vea las carpetas
|
||||
- PYTHONPATH=/app
|
||||
- DB_NAME=gitea
|
||||
- DB_USER=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
|
||||
networks:
|
||||
- gitea_default
|
||||
- gitea_network
|
||||
ports:
|
||||
- "${PORT}:8000"
|
||||
|
||||
networks:
|
||||
gitea_default:
|
||||
gitea_network:
|
||||
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
|
||||
Reference in New Issue
Block a user