Initial commit: Full project structure
- Backend: NestJS with Docker - Frontend: Next.js with Docker - Nginx configuration for reverse proxy - PostgreSQL setup - Docker compose for orchestration - Development environment configuration
This commit is contained in:
23
frontend/docker-entrypoint.sh
Normal file
23
frontend/docker-entrypoint.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# frontend/docker-entrypoint.sh
|
||||
|
||||
echo "=========================================="
|
||||
echo " Dyolink Frontend - Docker Entrypoint"
|
||||
echo "=========================================="
|
||||
|
||||
# Check if we're in production
|
||||
if [ "$NODE_ENV" = "production" ]; then
|
||||
echo "Running in PRODUCTION mode"
|
||||
|
||||
# Verify the backend is reachable (optional)
|
||||
if [ -n "$NEXT_PUBLIC_API_URL" ]; then
|
||||
echo "API URL configured: $NEXT_PUBLIC_API_URL"
|
||||
fi
|
||||
else
|
||||
echo "Running in DEVELOPMENT mode"
|
||||
fi
|
||||
|
||||
echo "Starting Next.js application..."
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user