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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user