SystemCraft provides a fully configured Docker environment for easy local development, testing, and deployment.
Before getting started, ensure you have the following installed on your system:
You also must have your environment variables configured. Create a .env file in the root directory (you can copy the provided .env.example file and fill in your values).
cp .env.example .envTo build your containers and start the application in detached mode (running in the background), run:
docker-compose up --build -dOnce the containers are successfully running, the web application will be accessible in your localized environment.
Open your browser and navigate to: http://localhost:3000
Here are some helpful commands for managing your SystemCraft Docker environment:
-
View live logs:
docker-compose logs -f
-
Stop all containers:
docker-compose down
-
Stop containers and remove associated volumes (useful for a complete reset):
docker-compose down -v
-
Rebuild specific services without cache:
docker-compose build --no-cache
- Port Conflicts: If
http://localhost:3000is already in use by another application, you can modify the port mapping in thedocker-compose.ymlfile under thewebservice ports configuration (e.g.,"8080:3000"). - Environment Variables: If you encounter authentication or database errors on boot, ensure your
.envcontains the required keys (NEXT_PUBLIC_FIREBASE_API_KEY,MONGODB_URL, etc.). The Docker configuration automatically injects these public variables at build time and secret variables at runtime.