mirror of
https://github.com/dockpeek/dockpeek.git
synced 2025-12-31 22:49:31 -06:00
1.8 KiB
1.8 KiB
Building DockPeek
This guide explains how to build and run DockPeek from source.
Prerequisites
- Docker and Docker Compose
- Node.js and npm (for Tailwind CSS compilation)
- Git
Getting the Source Code
Clone the repository
git clone https://github.com/dockpeek/dockpeek.git
cd dockpeek
Choose a branch
Stable version (recommended):
git checkout main
Development version (latest features):
git checkout develop
Install Dependencies
Install Node.js dependencies for Tailwind CSS:
npm install
Building CSS
Compile the Tailwind CSS:
npm run build:css
Note: The tailwindcss.css file is automatically generated. Do not edit it manually - make your changes in styles.css instead, then rebuild.
Building and Running with Docker Compose
-
Navigate to the
deploydirectory:cd deploy -
Build and start the container:
docker-compose up -d --build -
Access DockPeek at
http://localhost:3420
Configuration
Edit the docker-compose.yml file to customize:
SECRET_KEY- Application secret key (change in production!)USERNAME/PASSWORD- Login credentials (default: admin/admin)DISABLE_AUTH- Set totrueto disable authenticationDOCKER_HOST_NAME- Display name for the Docker hostLOG_LEVEL- Logging verbosity (DEBUG, INFO, WARNING, ERROR)- Port mapping - Change
3420:8000to use a different port
Development
For development with auto-reload:
docker-compose up
To rebuild after changes:
docker-compose up -d --build
Updating
To update to the latest version:
git pull origin main # or 'develop' for development branch
npm install # update dependencies if needed
npm run build:css
cd deploy
docker-compose up -d --build