⚠️ Development Mode
Development mode is for development purposes only and must not be used in production. Logs may leak credentials, passwords, and other sensitive information. If you are not comfortable with React, TypeScript, or have security concerns, do not use this mode.
Prerequisites
- Familiarity with Docker and Docker Compose
- Node.js and npm installed (for advanced development)
- Git installed
1. Clone the Repository
bash
git clone https://github.com/SquirrelCorporation/SquirrelServersManager
2. Configure Environment Variables
Edit the .env.dev
file in the project root:
ini
SECRET=REPLACE_ME
SALT=1234567890123456
VAULT_PWD=REPLACE_ME
SECRET
: A long, random string for JWT signingSALT
: Must be exactly 16 alphanumeric charactersVAULT_PWD
: A strong password for Ansible vault encryption
3. Start Development Environment
You can use either Docker Compose V1 or V2:
bash
docker-compose --verbose -f docker-compose.dev.yml up
or
bash
docker compose --verbose -f docker-compose.dev.yml up
Ports
- SSM UI/API: :8000
- MongoDB: :27017
Volumes
- Docker Compose will create a
.data.dev
directory for persistent data storage - It will mount
./client/src/
and./server/src/
for live code reloads using Nodemon
Security Warning
DANGER
Never use development mode in production. Sensitive data may be exposed in logs and the environment is not hardened.