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: