Installation
Docker Compose stack
The default stack includes:
backendon port5656frontendon port5050postgreson host port5434redison host port8946
Current build/runtime status:
- backend image is built from the Go
1.26codebase - frontend image builds the Angular
21.1app and serves the static output via nginx
Rotating proxy listener ports are also mapped by default:
- TCP:
20000-20100 - UDP:
20000-20100
Required secrets/config
Set these before starting Magpie:
PROXY_ENCRYPTION_KEYJWT_SECRET
Optional DB overrides:
DB_USERNAMEDB_PASSWORDDB_NAME
If omitted, Docker Compose uses built-in DB defaults. Installer scripts auto-generate strong DB credentials.
Why it matters:
- It encrypts stored proxy secrets (auth, passwords, and encrypted IP fields).
- Changing it later prevents old encrypted values from being decrypted.
Local clone workflow
git clone https://github.com/Kuucheen/magpie.git
cd magpie
cp .env.example .env
# edit .env and set PROXY_ENCRYPTION_KEY and JWT_SECRET
# optional: override DB_USERNAME/DB_PASSWORD/DB_NAME
docker compose up -d
Installer script notes
Install scripts support environment overrides such as:
MAGPIE_INSTALL_DIRMAGPIE_IMAGE_TAGMAGPIE_REPO_OWNERMAGPIE_REPO_NAMEMAGPIE_REPO_REF
See Deployment and Environment Variables.