From ae9e2684679d9a9f0c4d995ca0891aaa97ee01dd Mon Sep 17 00:00:00 2001 From: Resistencia Dev Date: Mon, 22 Dec 2025 17:55:12 +0100 Subject: [PATCH] chore: Sincronizar docker-compose_prod.yml con el sistema de variables de entorno --- docker-compose_prod.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker-compose_prod.yml b/docker-compose_prod.yml index f2e857b..c28d3c2 100644 --- a/docker-compose_prod.yml +++ b/docker-compose_prod.yml @@ -5,6 +5,8 @@ services: build: context: . dockerfile: client/Dockerfile + args: + - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-https://api.franciaocupada.martivich.es} ports: - "3000:3000" volumes: @@ -12,7 +14,7 @@ services: - ./shared:/app/shared - /app/client/node_modules environment: - - NEXT_PUBLIC_API_URL=https://api.franciaocupada.martivich.es + - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-https://api.franciaocupada.martivich.es} depends_on: - server networks: @@ -32,8 +34,8 @@ services: - /app/server/node_modules environment: - PORT=4000 - - DATABASE_URL=postgresql://postgres:password@db:5432/resistencia - - CORS_ORIGIN=https://franciaocupada.martivich.es + - DATABASE_URL=${DATABASE_URL:-postgresql://postgres:password@db:5432/resistencia} + - CORS_ORIGIN=${CORS_ORIGIN:-https://franciaocupada.martivich.es} depends_on: - db networks: