Files
django-core-base/deployments/docker-compose.yml
minguezsanzjuanjose 02bc67c5fd
All checks were successful
DEPLOY_MULTI_BRACH/pipeline/head This commit looks good
Update docker-compose.yml
2026-04-12 04:49:56 +02:00

28 lines
727 B
YAML

services:
web:
build:
context: ..
dockerfile: deployments/Dockerfile
container_name: ${CONTAINER_NAME}
restart: always
working_dir: /app
environment:
- DEBUG=${DEBUG_MODE}
- PYTHONPATH=/app
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWORD=gitea
# CAMBIO CLAVE: Usamos el nombre del servicio, no el del contenedor con el "-1"
- DB_HOST=gitea-db
- DB_PORT=5432
networks:
- gitea_network
ports:
- "${PORT}:8000"
networks:
gitea_network:
external: true
# 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