Raspberry Pi Docker Compose Generator
Tick the services you want on your Pi and copy the finished docker-compose.yml. The generator creates random passwords in your browser on every page load, and they never leave your device.
What is Docker Compose?
Docker runs programs in isolated containers. Docker Compose describes several containers in one file and starts them all with a single command.
1. Basic settings
PUID and PGID are the user and group ID of your Pi user (usually 1000, check with id). Jellyfin, Mosquitto and Node-RED run as that user. Folders that Docker creates on its own belong to root, though, which is why those services come with mkdir hints in the code.
2. Pick your services
Hover over a service or tap it to see the details.
3. Your docker-compose.yml
How to start the services
Docker isn’t installed yet? Set it up first with our Docker guide.
- Connect to your Pi via SSH.
- Create a folder and change into it:
mkdir -p ~/docker-stack, thencd ~/docker-stack - Open the file:
nano docker-compose.yml - Paste the code, save with Ctrl+O and Enter, then exit with Ctrl+X.
- Read the comments in the code: Jellyfin, Mosquitto and Node-RED need a folder or config file before their first start.
- Replacing an older file from this generator? Stop the stack with
docker compose downfirst and copy your database passwords over from the old file, as the comments explain. - Start everything:
docker compose up -d - Check that everything is running:
docker compose psshould list each service as running or Up.
