- Docker
- Docker Compose
# Build and start the containers
docker compose up --build# Install dependencies
npm install
# Build for production
npm run build
# The production files will be in the 'dist' directory
# These files are static and can be served by any web server
# If using nginx, copy the files to your web server directory:
cp -r dist/* /var/www/html/
# Or serve locally for testing:
npm install -g serve
serve -s distNote: For production deployment, make sure to:
- Set proper environment variables
- Configure your web server (nginx/apache) correctly
- Set up SSL certificates for HTTPS
- Configure proper security headers
# Start the containers
docker compose up
# Start the containers in detached mode (run in background)
docker compose up -d
# Stop the containers
docker compose down
# Restart containers
docker compose restart
# View logs
docker compose logs
# View logs and follow them
docker compose logs -f
# Rebuild and restart containers (if you make changes to Dockerfile)
docker compose up --build
# Remove all containers and volumes (clean slate)
docker compose down -v# View running containers
docker ps
# Enter the container shell
docker compose exec app sh
# View container resource usage
docker statsThe application will be available at: http://localhost:3000
If you encounter issues:
- Try stopping all containers and removing volumes:
docker compose down -v- Rebuild the containers:
docker compose up --build- If the issue persists, you can try cleaning Docker system:
docker system prune -a
docker volume prune