Docker Quick Start - Ever Teams Web
Two Available Modes
Development Mode (RECOMMENDED for coding)
- ✅ Hot reload: Code changes reload automatically
- ✅ No rebuild needed for each change
- ✅ Ideal for rapid development and testing
- ⚠️ Larger image size (~1GB)
Production Mode
- ✅ Optimized and lightweight image (~200MB)
- ✅ Maximum performance
- ❌ No hot reload (rebuild required for each change)
- ✅ Ideal for deployment
Quick Start - Development Mode
Simple Method: Use the automated script
# 1. Make the script executable (once)
chmod +x docker-run.sh
# 2. Build the development image (once)
./docker-run.sh dev:build
# 3. Start the application in development mode
./docker-run.sh dev
# The application will start at http://localhost:3030
# Edit your code and see changes in real-time!
# 4. Stop the application (Ctrl + C in terminal)
# Or in another terminal:
./docker-run.sh stop # Stops ALL containers (dev + prod)
How does hot reload work?
The development mode uses mounted volumes + Next.js file watching (with polling):
- ✅ Automatic hot reload: Changes appear in real-time
- ✅ Compatible: Works with all Docker Compose versions
- ✅ Reliable: Proven method for Docker development
- ⚠️ Polling-based: Uses
CHOKIDAR_USEPOLLING=truefor file detection
Manual Method: Use docker-compose directly
# 1. Build the development image
docker-compose -f docker-compose.dev.yml --env-file .env.dev.docker build
# 2. Start the application
docker-compose -f docker-compose.dev.yml --env-file .env.dev.docker up
# 3. Access the application
# Open your browser at: http://localhost:3030
# 4. Edit your code - the application reloads automatically!
# 5. Stop the application (Ctrl + C in terminal)
# Then to clean up:
docker-compose -f docker-compose.dev.yml down