feat: Configurar acceso desde red local

- Crear archivo .env.example con configuración de red local
- Actualizar docker-compose.yml para usar variables de entorno
- Soportar acceso desde IP 192.168.1.131
- Documentar configuración en NETWORK-ACCESS.md
- Permitir acceso desde móviles y tablets en la misma red
This commit is contained in:
Resistencia Dev
2025-12-22 17:20:41 +01:00
parent e9b4390db6
commit b1322e05c6
3 changed files with 78 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ services:
- ./shared:/app/shared
- /app/client/node_modules
environment:
- NEXT_PUBLIC_API_URL=http://localhost:4000
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:4000}
depends_on:
- server
networks:
@@ -32,8 +32,8 @@ services:
- /app/server/node_modules
environment:
- PORT=4000
- DATABASE_URL=postgresql://postgres:password@db:5432/resistencia
- CORS_ORIGIN=http://localhost:3000
- DATABASE_URL=${DATABASE_URL:-postgresql://postgres:password@db:5432/resistencia}
- CORS_ORIGIN=${CORS_ORIGIN:-http://localhost:3000}
depends_on:
- db
networks: